Files
CVEs-PoC/2017/CVE-2017-1000253.md
T
2025-09-29 21:09:30 +02:00

52 lines
4.0 KiB
Markdown

### [CVE-2017-1000253](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-1000253)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=1.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=2.6.25%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.11%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.13%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.15%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.17%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.19%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.3%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=3.5%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.1%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.2%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.3%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.4%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.5%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.6%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.7%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.8%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.9%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.1%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.1406%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.1503%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.1511%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.1611%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.2%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=7.3%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brightgreen)
### 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.
### POC
#### Reference
- https://www.qualys.com/2017/09/26/cve-2017-1000253/cve-2017-1000253.txt
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/HaxorSecInfec/autoroot.sh
- https://github.com/JlSakuya/Linux-Privilege-Escalation-Exploits
- https://github.com/RicterZ/PIE-Stack-Clash-CVE-2017-1000253
- https://github.com/a-roshbaik/Linux-Privilege-Escalation-Exploits
- https://github.com/kaosagnt/ansible-everyday
- https://github.com/sxlmnwb/CVE-2017-1000253
- https://github.com/vlain1337/auto-lpe