CVE-2017-1000253: Linux Kernel PIE Stack Buffer Corruption Vulnerability

Published Sep 15, 2017
·
Updated

A flaw was found in the way the Linux kernel loaded ELF executables. Provided that an application was built as Position Independent Executable (PIE), the loader could allow part of that application's data segment to map over the memory area reserved for its stack, potentially resulting in memory corruption. An unprivileged local user with access to SUID (or otherwise privileged) PIE binary could use this flaw to escalate their privileges on the system.

Upstream patch:

https://git.kernel.org/linus/a87938b2e246b81b4fb713edb371a9fa3c5c3c86

Other sources

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 CONFIGARCHBINFMTELFRANDOMIZEPIE enabled, and a normal top-down address allocation strategy, loadelfbinary() will attempt to map a PIE binary into an address range immediately below mm->mmapbase. Unfortunately, loadelf binary() does not take account of the need to allocate sufficient space for the entire binary which means that, while the first PTLOAD segment is mapped below mm->mmapbase, the subsequent PTLOAD segment(s) end up being mapped above mm->mmapbase into the are that is supposed to be the "gap" between the stack and the binary.

NVD

Linux kernel contains a position-independent executable (PIE) stack buffer corruption vulnerability in loadelf binary() that allows a local attacker to escalate privileges.

CISA

Affected Software

38 affected components
Linux Kernel
CentOS CentOS=6.0
CentOS CentOS=6.1
CentOS CentOS=6.2
CentOS CentOS=6.3
CentOS CentOS=6.4
CentOS CentOS=6.5
CentOS CentOS=6.6
CentOS CentOS=6.7
CentOS CentOS=6.8
CentOS CentOS=6.9
CentOS CentOS=7.1406
CentOS CentOS=7.1503
CentOS CentOS=7.1511
CentOS CentOS=7.1611
redhat Enterprise Linux=6.0
redhat Enterprise Linux=6.1
redhat Enterprise Linux=6.2
redhat Enterprise Linux=6.3
redhat Enterprise Linux=6.4
redhat Enterprise Linux=6.5
redhat Enterprise Linux=6.6
redhat Enterprise Linux=6.7
redhat Enterprise Linux=6.8
redhat Enterprise Linux=6.9
redhat Enterprise Linux=7.0
redhat Enterprise Linux=7.1
redhat Enterprise Linux=7.2
redhat Enterprise Linux=7.3
Linux Linux kernel>=2.6.25<3.2.70
Linux Linux kernel>=3.3<3.4.109
Linux Linux kernel>=3.5<3.10.77
Linux Linux kernel>=3.11<3.12.43
Linux Linux kernel>=3.13<3.14.41
Linux Linux kernel>=3.15<3.16.35
Linux Linux kernel>=3.17<3.18.14
Linux Linux kernel>=3.19<3.19.7
Linux Linux kernel>=4.0<4.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch a87938b2e246b81b4fb713edb371a9fa3c5c3c86
  2. Upgrade

    Upgrade Red Hat Kernel-devel to a version that resolves this vulnerability.

    Fixed in 3.10.77
  3. Configuration

    Build/install a kernel with CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE disabled (set to 'n') to prevent PIE binaries being mapped into the stack gap.

    Linux kernel (build configuration) CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE = disabled

Event History

Sep 15, 2017
Data Sourced
via Red Hat·07:30 PM
DescriptionSeverityAffected Software
Oct 4, 2017
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description
Sep 9, 2024
Known Exploited
via CISA·12:00 AM
Known Ransomware
via CISA·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-1000253?

CVE-2017-1000253 is classified as a high-severity vulnerability due to the potential for local privilege escalation.

2

How do I fix CVE-2017-1000253?

To fix CVE-2017-1000253, apply the latest kernel updates provided by your Linux distribution.

3

What systems are affected by CVE-2017-1000253?

CVE-2017-1000253 affects various versions of the Linux kernel, particularly those in CentOS 6.x and 7.x, as well as Red Hat Enterprise Linux 6.x and 7.x.

4

Can CVE-2017-1000253 be exploited remotely?

CVE-2017-1000253 requires local access to the system for exploitation, meaning it is not a remote vulnerability.

5

What is the impact of CVE-2017-1000253 on my applications?

CVE-2017-1000253 can allow attackers to gain elevated privileges, potentially compromising sensitive applications running on affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203