CVE Vulnerabilities

CVE-2018-8897

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Published: May 08, 2018 | Modified: Nov 21, 2024
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
Ubuntu
HIGH
root.io logo minimus.io logo echo.ai logo

A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developers Manual (SDM) was mishandled in the development of some or all operating-system kernels, resulting in unexpected behavior for #DB exceptions that are deferred by MOV SS or POP SS, as demonstrated by (for example) privilege escalation in Windows, macOS, some Xen configurations, or FreeBSD, or a Linux kernel crash. The MOV to SS and POP SS instructions inhibit interrupts (including NMIs), data breakpoints, and single step trap exceptions until the instruction boundary following the next instruction (SDM Vol. 3A; section 6.8.3). (The inhibited data breakpoints are those on memory accessed by the MOV to SS or POP to SS instruction itself.) Note that debug exceptions are not inhibited by the interrupt enable (EFLAGS.IF) system flag (SDM Vol. 3A; section 2.3). If the instruction following the MOV to SS or POP to SS instruction is an instruction like SYSCALL, SYSENTER, INT 3, etc. that transfers control to the operating system at CPL < 3, the debug exception is delivered after the transfer to CPL < 3 is complete. OS kernels may not expect this order of events and may therefore experience unexpected behavior when it occurs.

Weakness

The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

Affected Software

NameVendorStart VersionEnd Version
Debian_linuxDebian7.0 (including)7.0 (including)
Debian_linuxDebian8.0 (including)8.0 (including)
Debian_linuxDebian9.0 (including)9.0 (including)
Red Hat Enterprise Linux 5.9 Long LifeRedHatkernel-0:2.6.18-348.39.2.el5*
Red Hat Enterprise Linux 5 Extended Lifecycle SupportRedHatkernel-0:2.6.18-431.el5*
Red Hat Enterprise Linux 6RedHatkernel-0:2.6.32-696.28.1.el6*
Red Hat Enterprise Linux 6.4 Advanced Update SupportRedHatkernel-0:2.6.32-358.88.2.el6*
Red Hat Enterprise Linux 6.5 Advanced Update SupportRedHatkernel-0:2.6.32-431.89.2.el6*
Red Hat Enterprise Linux 6.6 Advanced Update SupportRedHatkernel-0:2.6.32-504.68.2.el6*
Red Hat Enterprise Linux 6.6 Telco Extended Update SupportRedHatkernel-0:2.6.32-504.68.2.el6*
Red Hat Enterprise Linux 6.7 Extended Update SupportRedHatkernel-0:2.6.32-573.55.2.el6*
Red Hat Enterprise Linux 7RedHatkernel-rt-0:3.10.0-862.2.3.rt56.806.el7*
Red Hat Enterprise Linux 7RedHatkernel-0:3.10.0-862.2.3.el7*
Red Hat Enterprise Linux 7.2 Advanced Update SupportRedHatkernel-0:3.10.0-327.66.3.el7*
Red Hat Enterprise Linux 7.2 Telco Extended Update SupportRedHatkernel-0:3.10.0-327.66.3.el7*
Red Hat Enterprise Linux 7.2 Update Services for SAP SolutionsRedHatkernel-0:3.10.0-327.66.3.el7*
Red Hat Enterprise Linux 7.3 Extended Update SupportRedHatkernel-0:3.10.0-514.48.3.el7*
Red Hat Enterprise Linux 7.4 Extended Update SupportRedHatkernel-0:3.10.0-693.25.4.el7*
Red Hat Enterprise MRG 2RedHatkernel-rt-1:3.10.0-693.25.4.rt56.613.el6rt*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatimgbased-0:1.0.16-0.1.el7ev*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatovirt-node-ng-0:4.2.0-0.20170814.0.el7*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatredhat-release-virtualization-host-0:4.2-3.0.el7*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatredhat-virtualization-host-0:4.2-20180508.0*
RHEV 3.X Hypervisor and Agents for RHEL-6RedHatrhev-hypervisor7-0:7.3-20180521.1.el6ev*
RHEV 3.X Hypervisor and Agents for RHEL-7 ELSRedHatredhat-virtualization-host-0:3.6-20180521.0*
RHEV 3.X Hypervisor and Agents for RHEL-7 ELSRedHatrhev-hypervisor7-0:7.3-20180521.1.el7ev*
LinuxUbuntuartful*
LinuxUbuntuesm-infra-legacy/trusty*
LinuxUbuntuesm-infra/xenial*
LinuxUbuntutrusty*
LinuxUbuntutrusty/esm*
LinuxUbuntuupstream*
LinuxUbuntuxenial*
Linux-awsUbuntuesm-infra-legacy/trusty*
Linux-awsUbuntuesm-infra/xenial*
Linux-awsUbuntutrusty*
Linux-awsUbuntutrusty/esm*
Linux-awsUbuntuupstream*
Linux-awsUbuntuxenial*
Linux-aws-5.15Ubuntuupstream*
Linux-aws-5.4Ubuntuupstream*
Linux-aws-6.8Ubuntuupstream*
Linux-aws-fipsUbuntutrusty*
Linux-aws-fipsUbuntuupstream*
Linux-aws-fipsUbuntuxenial*
Linux-aws-hweUbuntuupstream*
Linux-azureUbuntuesm-infra/xenial*
Linux-azureUbuntuupstream*
Linux-azureUbuntuxenial*
Linux-azure-4.15Ubuntuupstream*
Linux-azure-5.15Ubuntuupstream*
Linux-azure-5.4Ubuntuupstream*
Linux-azure-6.8Ubuntuupstream*
Linux-azure-fdeUbuntuesm-infra/focal*
Linux-azure-fdeUbuntufocal*
Linux-azure-fdeUbuntuupstream*
Linux-azure-fde-5.15Ubuntuupstream*
Linux-azure-fipsUbuntutrusty*
Linux-azure-fipsUbuntuupstream*
Linux-azure-fipsUbuntuxenial*
Linux-bluefieldUbuntuupstream*
Linux-euclidUbuntuupstream*
Linux-euclidUbuntuxenial*
Linux-fipsUbuntufips-updates/xenial*
Linux-fipsUbuntufips/xenial*
Linux-fipsUbuntuupstream*
Linux-floUbuntutrusty*
Linux-floUbuntuupstream*
Linux-floUbuntuxenial*
Linux-gcpUbuntuesm-infra/xenial*
Linux-gcpUbuntuupstream*
Linux-gcpUbuntuxenial*
Linux-gcp-4.15Ubuntuupstream*
Linux-gcp-5.15Ubuntuupstream*
Linux-gcp-5.4Ubuntuupstream*
Linux-gcp-6.8Ubuntuupstream*
Linux-gcp-fipsUbuntutrusty*
Linux-gcp-fipsUbuntuupstream*
Linux-gcp-fipsUbuntuxenial*
Linux-gkeUbuntuesm-infra/focal*
Linux-gkeUbuntufocal*
Linux-gkeUbuntuupstream*
Linux-gkeUbuntuxenial*
Linux-gkeopUbuntuupstream*
Linux-gkeop-5.15Ubuntuupstream*
Linux-goldfishUbuntutrusty*
Linux-goldfishUbuntuupstream*
Linux-goldfishUbuntuxenial*
Linux-grouperUbuntutrusty*
Linux-grouperUbuntuupstream*
Linux-hweUbuntuesm-infra/xenial*
Linux-hweUbuntuupstream*
Linux-hweUbuntuxenial*
Linux-hwe-5.15Ubuntuupstream*
Linux-hwe-5.4Ubuntuupstream*
Linux-hwe-6.8Ubuntuupstream*
Linux-hwe-edgeUbuntuesm-infra/xenial*
Linux-hwe-edgeUbuntuupstream*
Linux-hwe-edgeUbuntuxenial*
Linux-ibmUbuntuupstream*
Linux-ibm-5.15Ubuntuupstream*
Linux-ibm-5.4Ubuntuupstream*
Linux-intelUbuntuupstream*
Linux-intel-iot-realtimeUbuntujammy*
Linux-intel-iot-realtimeUbuntuupstream*
Linux-intel-iotgUbuntuupstream*
Linux-intel-iotg-5.15Ubuntuupstream*
Linux-iotUbuntuupstream*
Linux-kvmUbuntuesm-infra/xenial*
Linux-kvmUbuntuupstream*
Linux-kvmUbuntuxenial*
Linux-lowlatencyUbuntuupstream*
Linux-lowlatency-hwe-5.15Ubuntuupstream*
Linux-lowlatency-hwe-6.8Ubuntuupstream*
Linux-lts-trustyUbuntuupstream*
Linux-lts-utopicUbuntutrusty*
Linux-lts-utopicUbuntuupstream*
Linux-lts-vividUbuntutrusty*
Linux-lts-vividUbuntuupstream*
Linux-lts-wilyUbuntutrusty*
Linux-lts-wilyUbuntuupstream*
Linux-lts-xenialUbuntuesm-infra-legacy/trusty*
Linux-lts-xenialUbuntutrusty*
Linux-lts-xenialUbuntutrusty/esm*
Linux-lts-xenialUbuntuupstream*
Linux-maguroUbuntutrusty*
Linux-maguroUbuntuupstream*
Linux-makoUbuntutrusty*
Linux-makoUbuntuupstream*
Linux-makoUbuntuxenial*
Linux-mantaUbuntutrusty*
Linux-mantaUbuntuupstream*
Linux-nvidiaUbuntuupstream*
Linux-nvidia-6.5Ubuntuupstream*
Linux-nvidia-6.8Ubuntuupstream*
Linux-nvidia-lowlatencyUbuntuupstream*
Linux-oemUbuntuupstream*
Linux-oemUbuntuxenial*
Linux-oem-6.11Ubuntuupstream*
Linux-oem-6.8Ubuntuupstream*
Linux-oracleUbuntuupstream*
Linux-oracle-5.15Ubuntuupstream*
Linux-oracle-5.4Ubuntuupstream*
Linux-oracle-6.8Ubuntuupstream*
Linux-raspiUbuntuupstream*
Linux-raspi-5.4Ubuntuupstream*
Linux-raspi-realtimeUbuntunoble*
Linux-raspi-realtimeUbuntuupstream*
Linux-raspi2Ubuntuesm-infra/focal*
Linux-raspi2Ubuntufocal*
Linux-raspi2Ubuntuupstream*
Linux-realtimeUbuntujammy*
Linux-realtimeUbuntuupstream*
Linux-riscvUbuntuesm-infra/focal*
Linux-riscvUbuntufocal*
Linux-riscvUbuntujammy*
Linux-riscvUbuntuupstream*
Linux-riscv-5.15Ubuntuupstream*
Linux-riscv-6.8Ubuntuupstream*
Linux-snapdragonUbuntuupstream*
Linux-xilinx-zynqmpUbuntuupstream*

Extended Description

A race condition occurs within concurrent environments, and it is effectively a property of a code sequence. Depending on the context, a code sequence may be in the form of a function call, a small number of instructions, a series of program invocations, etc. A race condition violates these properties, which are closely related:

A race condition exists when an “interfering code sequence” can still access the shared resource, violating exclusivity. The interfering code sequence could be “trusted” or “untrusted.” A trusted interfering code sequence occurs within the product; it cannot be modified by the attacker, and it can only be invoked indirectly. An untrusted interfering code sequence can be authored directly by the attacker, and typically it is external to the vulnerable product.

Potential Mitigations

  • Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring.
  • Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).

References