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.
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
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
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
- http://openwall.com/lists/oss-security/2017/08/03/2
- https://bugzilla.redhat.com/show_bug.cgi?id=1468283
- https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1408967.html
- https://patchwork.kernel.org/patch/9755753/
- https://patchwork.kernel.org/patch/9755757/
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49d31c2f389acfe8341708...
Related Security Bulletins
- Privilege escalation in Linux kernel
- Red Hat update for Linux Kernel
- Red Hat update for Linux Kernel
- Red Hat update for Linux Kernel
- SUSE Linux update for Linux Kernel Live Patch 0 for SLE 12 SP3
- SUSE Linux update for Linux Kernel Live Patch 20 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 22 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 23 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 15 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 16 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 17 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 14 for SLE 12 SP1
- SUSE Linux update for the Linux Kernel
- SUSE Linux update for Linux Kernel Live Patch 6 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 10 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 9 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 7 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 8 for SLE 12 SP2
- SUSE Linux update for the Linux Kernel
- SUSE Linux update for the Linux Kernel
- Amazon Linux AMI update for kernel
- OpenSUSE Linux update for the Linux Kernel
- Fedora 26 update for kernel
- Fedora 25 update for kernel
- Fedora 25 update for kernel