VDB-11669 · OSVDB 101515

Linux Kernel vm86 Syscall FPU Exception denial of service

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.2$0-$5k0.00

A vulnerability was found in Linux Kernel (Operating System) (version unknown) and classified as problematic. This issue affects an unknown function of the component vm86 Syscall Handler. The manipulation as part of a FPU Exception leads to a denial of service vulnerability. Using CWE to declare the problem leads to CWE-404. The product does not release or incorrectly releases a resource before it is made available for re-use. Impacted is availability.

The bug was discovered 12/28/2013. The weakness was shared 12/28/2013 by halfdog as Vm86SyscallTaskSwitchKernelPanic as not defined advisory (Website). The advisory is shared at halfdog.net. The public release happened without involvement of Linux. An attack has to be approached locally. The successful exploitation requires a simple authentication. Technical details are unknown but a public exploit is available. The advisory points out:

The linux vm86 syscall allows to use the virtual-8086 mode from userspace, e.g. for emulating of old 8086 software as done with dosemu. When in virtual-8086-mode instructions work differently, e.g. 16 bit operand sizes, addressing as in real mode and interception of IO, interrupt calls and CPU exceptions. Usually those are handled by the software outside the virtual-8086 code to emulate the behavior of those instructions as if they were running on real hardware. As virtual-8086 mode might change eflags or FPU state, but some of these changes are problematic in protected mode, hence the kernel has to take care to permit not all of those and to revert them during task switching. It seems, that during task switching, unhandled FPU exceptions cause errors resulting in a kernel panic. Key player is the emms instruction, which will fault when e.g. cr0 has bits set due to unhandled errors.

A public exploit has been developed by halfdog in ANSI C and been published immediately after the advisory. The exploit is available at halfdog.net. It is declared as proof-of-concept. The code used by the exploit is:

socat TCP4-LISTEN:1234,reuseaddr=1,fork=1 EXEC:./Virtual86RandomCode,nofork=1

tee TestInput < /dev/urandom | socat - TCP4:x.x.x.x:1234 > ProcessedBlocks

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

Productinfo

Type

Vendor

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.5
VulDB Meta Temp Score: 5.2

VulDB Base Score: 5.5
VulDB Temp Score: 5.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Denial of service
CWE: CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: halfdog
Programming Language: 🔍
Download: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Timelineinfo

12/28/2013 🔍
12/28/2013 +0 days 🔍
12/28/2013 +0 days 🔍
12/31/2013 +3 days 🔍
03/29/2019 +1914 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: Vm86SyscallTaskSwitchKernelPanic
Researcher: halfdog
Status: Not defined
OSVDB: 101515

scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 12/31/2013 09:01
Updated: 03/29/2019 08:42
Changes: 12/31/2013 09:01 (49), 03/29/2019 08:42 (2)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!