Race condition in Linux kernel - CVE-2017-7533

 

Race condition in Linux kernel - CVE-2017-7533

Published: August 5, 2017 / Updated: June 17, 2021


Vulnerability identifier: #VU7694
CSH Severity: Medium
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-7533
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a local user to execute arbitrary code with escalated privileges.

The vulnerability exists due to a race condition in the fsnotify implementation in the Linux kernel through 4.12.4. A local user can create an application, which leverages simultaneous execution of the inotify_handle_event and vfs_rename functions and trigger memory corruption and denials of service attack or execute arbitrary code on the target system with root privileges.

Successful exploitation of this vulnerability may allow a local user to obtain elevated privileges on the system.

Note: this vulnerability is being active exploited in the wild for 32-bit systems in August 2017.

Affected software

Linux kernel
Amazon Linux AMI
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux Server for ARM
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Server (for IBM Power LE) - 4 Year Extended Update Support
Red Hat Enterprise Linux Server - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - 4 Year Extended Update Support
SUSE Linux
Fedora

kernel (Red Hat package)
kernel-rt (Red Hat package)
kernel
Red Hat Virtualization Host

How to mitigate CVE-2017-7533

Install update from vendor's repository.

kernel (Red Hat package) - addressed in versions 3.10.0-514.32.2.el7, 3.10.0-693.1.1.el7
kernel-rt (Red Hat package) - update to 3.10.0-693.2.1.rt56.620.el7
kernel - addressed in versions 4.12.5-200.fc25, 4.12.5-300.fc26, 4.12.8-200.fc25

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins