CVE-2017-1000371
The offset2lib patch as used by the Linux Kernel contains a vulnerability, if RLIMIT_STACK is set to RLIM_INFINITY and 1 Gigabyte of memory is allocated (the m…
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- Linux Kernel (Debian 9/10 / Ubuntu 14.04.5/16.04.2/17.04 / Fedora 23/24/25) - 'ldso_dynamic Stack Clash' Local Privilege Escalation2017-06-28 · local · linux_x86 · Verified
- Linux Kernel - 'offset2lib' Stack Clash2017-06-28 · local · linux_x86 · Verified
Impact
The offset2lib patch as used by the Linux Kernel contains a vulnerability, if RLIMIT_STACK is set to RLIM_INFINITY and 1 Gigabyte of memory is allocated (the maximum under the 1/4 restriction) then the stack will be grown down to 0x80000000, and as the PIE binary is mapped above 0x80000000 the minimum distance between the end of the PIE binary's read-write segment and the start of the stack becomes small enough that the stack guard page can be jumped over by an attacker. This affects Linux Kernel version 4.11.5. This is a different issue than CVE-2017-1000370 and CVE-2017-1000365. This issue appears to be limited to i386 based systems.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Linux | Linux Kernel | from 4.1 before 4.1.43 from 4.2 before 4.4.78 from 4.5 before 4.9.39 from 4.10 before 4.11.12 from 4.12 before 4.12.3 |
References
- NVD record
- CVE.org record
- http://www.debian.org/security/2017/dsa-3981
- http://www.securityfocus.com/bid/99131
- https://access.redhat.com/security/cve/CVE-2017-1000371
- https://www.exploit-db.com/exploits/42273/
- https://www.exploit-db.com/exploits/42276/
- https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt
- http://www.debian.org/security/2017/dsa-3981
- http://www.securityfocus.com/bid/99131
- https://access.redhat.com/security/cve/CVE-2017-1000371
- https://www.exploit-db.com/exploits/42273/
- https://www.exploit-db.com/exploits/42276/
- https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt