Description
The offset2lib patch as used in the Linux Kernel contains a vulnerability that allows a PIE binary to be execve()'ed with 1GB of arguments or environmental strings then the stack occupies the address 0x80000000 and the PIE binary is mapped above 0x40000000 nullifying the protection of the offset2lib patch. This affects Linux Kernel version 4.11.5 and earlier. This is a different issue than CVE-2017-1000371. This issue appears to be limited to i386 based systems.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 4.11.11-1 | — |
| Debian 13 | linux | 4.11.11-1 | — |
| Debian 12 | linux | 4.11.11-1 | — |
| Debian 9 | linux | 4.9.30-2+deb9u5 | DSA-3981-1 |
| Debian 8 | linux | 3.16.43-2+deb8u5 | DSA-3981-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +2 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +3 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +4 | No fix yet | — |
| Ubuntu 16.04 LTS | linux | 4.4.0-93.116 | — |
| Ubuntu 16.04 LTS | linux-aws | 4.4.0-1032.41 | — |
| Ubuntu 16.04 LTS | linux-gcp | 4.13.0-1002.5 | — |
| Ubuntu 16.04 LTS | linux-gke | 4.4.0-1028.28 | — |
| Ubuntu 16.04 LTS | linux-hwe | 4.13.0-32.35~16.04.1 | — |
| Ubuntu 16.04 LTS | linux-raspi2 | 4.4.0-1071.79 | — |
| Ubuntu 16.04 LTS | linux-snapdragon | 4.4.0-1073.78 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | linux-lts-xenial | 4.4.0-93.116~14.04.1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | kernel-uek +5 | 4.1.12-124.39.5.el7uek | ELSA-2020-5708 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- Linux Kernel - 'offset2lib' Stack Clash EDB-42273 · local · Jun 28, 2017 · verified
- Linux Kernel (Debian 7/8/9/10 / Fedora 23/24/25 / CentOS 5.3/5.11/6.0/6.8/7.2.1511) - 'ldso_hwcap Stack Clash' Local Privilege Escalation EDB-42274 · local · Jun 28, 2017 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DSA-3981-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- ELSA-2020-5708 Important: Unbreakable Enterprise kernel security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jun 3, 2020
References
- 99149 vdb-entry
- https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt
- DSA-3981 vendor-advisory
- 42273 exploit
- 42274 exploit
- https://access.redhat.com/security/cve/CVE-2017-1000370