Race condition in Linux kernel - CVE-2017-1000405

 

Race condition in Linux kernel - CVE-2017-1000405

Published: December 1, 2017 / Updated: June 17, 2021


Vulnerability identifier: #VU9520
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-1000405
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to a race condition within touch_pmd() function in mmhugemem.c file when handling THPs. A local user can read read-only huge pages using the get_user_pages() function and overwrite arbitrary huge pages and files mapped via THP.

Successful exploitation of the vulnerability may allow an attacker to perform a denial of service (DoS) attack.

This vulnerability is a result of patch against a another privilege escalation vulnerability in Linux kernel known as Dirty Cow (CVE-2016-5195).


Affected software

Linux kernel
Amazon Linux AMI
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for ARM 64
SUSE Linux
Ubuntu
Fedora

kernel-alt (Red Hat package)
kernel

How to mitigate CVE-2017-1000405


kernel-alt (Red Hat package) - update to 4.11.0-44.4.1.el7a
kernel - addressed in versions 4.13.16-202.fc26, 4.13.16-302.fc27

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins