Patchfirst
CVE-2017-1000253 KEVRansomwarePublic exploit High · 7.8 EPSS 10.7%

Linux Kernel PIE Stack Buffer Corruption Vulnerability

Linux · Kernel

Summary

The Linux kernel's ELF loader (load_elf_binary() in the binfmt code) fails to reserve enough address space for all PT_LOAD segments of a PIE binary when CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE is enabled, so later segments can be mapped into the gap between the stack and the binary, causing memory buffer corruption. An attacker with a local, low-privilege account can trigger it by running a crafted PIE binary, with no user interaction or special configuration beyond that kernel option and default top-down address allocation.

Official description · NVD

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.

Breakdown
77.6 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. What they do

First seen exploited 4 years after disclosure. Public exploit code (Exploit-DB) was available 9 days before disclosure.

  1. Public exploit codeExploit-DB9 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+4 yrs
  4. Added to CISA KEVknown ransomware use; EU database agrees+7 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

1 , grouped by in kill-chain order, 1 cited passage 1

Privilege EscalationTA0004

Process Injection T1055 Medium also Stealth
AI mapping from the description · primary impact

memory layout corruption enables code injection into processes

subsequent PT_LOAD segment(s) end up being mapped above mm->mmap_base
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 37 general rules for its techniques

Rules for this CVE

0 that reference CVE-2017-1000253 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

14 links, grouped by NVD tag (13 duplicates merged)
↑ ↓ chooseEnter openEsc close