CVE-2017-1000253
KEV ransomwaremassLinux Kernel PIE Stack Buffer Corruption Enables Local Privilege Escalation
CISA: Linux Kernel PIE Stack Buffer Corruption Vulnerability
CVE-2017-1000253 is a memory-corruption flaw (CWE-119) in the Linux kernel's ELF binary loader: when CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE is enabled with a top-down allocation strategy, load_elf_binary() maps a PIE (position-independent executable) immediately below mm->mmap_base without reserving space for the entire binary, so subsequent PT_LOAD segments are mapped above mmap_base into the gap reserved between the stack and the binary. Any local user can trigger the flaw simply by executing a PIE binary on an affected unpatched long-term kernel. The resulting corruption of the stack region yields local privilege escalation with high impact on confidentiality, integrity, and availability (CVSS 3.1: 7.8, local attack vector, low privileges required). Affected systems are Linux distributions running long-term kernels that lack the April 2015 fix commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 — notably Red Hat Enterprise Linux and CentOS kernels — where the fix was applied but not recognized as a security issue at the time. CISA added the flaw to the Known Exploited Vulnerabilities catalog on 2024-09-09 with known ransomware use, and EPSS assigns a 10.7% probability of exploitation within 30 days (96th percentile); no public PoC is known.
What to do: Update affected systems to kernel packages that include commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (upstream since April 2015 and backported to Linux 3.10.77), or move to a currently supported kernel branch; per CISA KEV, apply vendor mitigations or discontinue use of the product if mitigations are unavailable. Prioritize legacy RHEL/CentOS and other long-lived LTS deployments — especially internet-facing or ransomware-targeted servers — and check whether running kernels are built with CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE and allow unprivileged users to execute PIE binaries.
| linux kernel | long-term kernels without fix commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (fixed upstream April 2015; backported to Linux 3.10.77 in May 2015) |
| redhat enterprise linux | kernels not carrying the backported fix (exact package versions per vendor advisory) |
| centos | kernels not carrying the backported fix (exact package versions per vendor advisory) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Linux distributions that have not patched their long-term kernels with https://git.kernel.org/linus/a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (committed on April 14, 2015). This kernel vulnerability was fixed in April 2015 by commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (backported to Linux 3.10.77 in May 2015), but it was not recognized as a security threat. With CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE enabled, and a normal top-down address allocation strategy, load_elf_binary() will attempt to map a PIE binary into an address range immediately below mm->mmap_base. Unfortunately, load_elf_ binary() does not take account of the need to allocate sufficient space for the entire binary which means that, while the first PT_LOAD segment is mapped below mm->mmap_base, the subsequent PT_LOAD segment(s) end up being mapped above mm->mmap_base into the are that is supposed to be the "gap" between the stack and the binary.
- Affected
- Linux Kernel
- Required action
- Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Due date
- Ransomware use
- Known