CVE
CVE-2017-1000253
CNA description
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 versions
All Linux kernel vulnerabilities →
- ≥ 4.0, < 4.0.2Fixed in 4.0.2
- ≥ 3.19, < 3.19.7Fixed in 3.19.7
- ≥ 3.17, < 3.18.14Fixed in 3.18.14
- ≥ 3.15, < 3.16.35Fixed in 3.16.35
- ≥ 3.13, < 3.14.41Fixed in 3.14.41
- ≥ 3.11, < 3.12.43Fixed in 3.12.43
- ≥ 3.5, < 3.10.77Fixed in 3.10.77
- ≥ 3.3, < 3.4.109Fixed in 3.4.109
- ≥ 2.6.25, < 3.2.70Fixed in 3.2.70
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- access.redhat.com/errata/RHSA-2017:2793 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2794 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2795 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2796 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2797 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2798 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2799 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2800 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2801 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2802 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.