CVE-2016-6252
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to...
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
CVE-2016-6252- Updated
- 2026-11-02
EUVDEUVD-2016-7182 No score
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
EUVD-2016-7182- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8rg4-9fq3-cf7g
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to...
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
GHSA-8rg4-9fq3-cf7g- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-6252
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
ALPINE-CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2016-6252
7.8
CVE-2016-6252 does not affect BellSoft software
- Record
BELL-CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSV
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-6252
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
DEBIAN-CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-6252
7.8
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- Record
UBUNTU-CVE-2016-6252- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2017-0024 No score
Updated shadow-utils packages fix security vulnerabilities
It was found that shadow-utils-4.2.1 had a potentially unsafe use of getlogin with the concern that the utmp entry might have a spoofed username associated with a correct uid (CVE-2016-6251).
It was found that shadow-utils-4.2.1 had an incorrect integer handling problem where it looks like the int wrap is exploitable as a LPE, as the kernel is using 32bit uid's that are truncated from unsigned longs (64bit on x64) as returned by simple_strtoul() [map_write()]. (CVE-2016-6252).
- Record
MGASA-2017-0024- Updated
- 2026-11-02
OSVSUSE-SU-2018:1995-1 No score
Security update for shadow
This update for shadow fixes the following issues:
- CVE-2016-6252: Fixed incorrect integer handling that could results in a local privilege escalation (bsc#1099310)
- Record
SUSE-SU-2018:1995-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1997-1 No score
Security update for shadow
This update for shadow fixes the following issues:
- CVE-2016-6252: Incorrect integer handling could results in local privilege escalation (bsc#1099310)
- Record
SUSE-SU-2018:1997-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1997-2 No score
Security update for shadow
This update for shadow fixes the following issues:
- CVE-2016-6252: Incorrect integer handling could results in local privilege escalation (bsc#1099310)
- Record
SUSE-SU-2018:1997-2- Updated
- 2026-11-02
OSVUSN-3276-1 No score
shadow vulnerabilities
Sebastian Krahmer discovered integer overflows in shadow utilities. A local attacker could possibly cause them to crash or potentially gain privileges via crafted input. (CVE-2016-6252)
Tobias Stöckmann discovered a race condition in su. A local attacker could cause su to send SIGKILL to other processes with root privileges. (CVE-2017-2616)
- Record
USN-3276-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
shadowAlpine:v3.10 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.11 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.12 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.13 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.14 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.15 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.16 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.17 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.18 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.19 |
before 4.2.1-r7 | 4.2.1-r7 |
Show 28 moreShow less
| Package | Affected | Fixed |
|---|---|---|
shadowAlpine:v3.20 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.21 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.22 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.23 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.24 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.5 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.6 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.7 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.8 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowAlpine:v3.9 |
before 4.2.1-r7 | 4.2.1-r7 |
shadowDebian:12 |
before 1:4.4-1 | 1:4.4-1 |
shadowDebian:13 |
before 1:4.4-1 | 1:4.4-1 |
shadowDebian:14 |
before 1:4.4-1 | 1:4.4-1 |
shadowDebian:8 |
before 1:4.2-3+deb8u3, plus listed versions 1:4.2-31:4.2-3+deb8u11:4.2-3+deb8u2 |
1:4.2-3+deb8u3 |
shadow-utilsMageia:5 |
before 4.2.1-6.mga5 | 4.2.1-6.mga5 |
shadowSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 4.1.5.1-19.8.1 | 4.1.5.1-19.8.1 |
shadowSUSE:Linux Enterprise Server 12-LTSS |
before 4.1.5.1-19.8.1 | 4.1.5.1-19.8.1 |
shadowSUSE:Linux Enterprise Server 12 SP1-LTSS |
before 4.1.5.1-19.8.1 | 4.1.5.1-19.8.1 |
shadowSUSE:OpenStack Cloud 7 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Desktop 12 SP3 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Server 12 SP2-LTSS |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Server 12 SP3 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Enterprise Storage 4 |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowSUSE:Linux Enterprise Server 12 SP2-BCL |
before 4.2.1-27.9.1 | 4.2.1-27.9.1 |
shadowUbuntu:14.04:LTS |
before 1:4.1.5.1-1ubuntu9.4, plus listed versions 1:4.1.5.1-1ubuntu61:4.1.5.1-1ubuntu71:4.1.5.1-1ubuntu81:4.1.5.1-1ubuntu91:4.1.5.1-1ubuntu9.11:4.1.5.1-1ubuntu9.2 |
1:4.1.5.1-1ubuntu9.4 |
shadowUbuntu:16.04:LTS |
before 1:4.2-3.1ubuntu5.2, plus listed versions 1:4.1.5.1-1.1ubuntu71:4.2-3.1ubuntu11:4.2-3.1ubuntu21:4.2-3.1ubuntu31:4.2-3.1ubuntu41:4.2-3.1ubuntu5 |
1:4.2-3.1ubuntu5.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-6252 is a high vulnerability (CVSS 7.8) in Shadow Project Shadow, published January 27, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in shadow 4.2.1-r7.
References
openwall.com/lists/oss-security/2016/07/19/7
securityfocus.com/bid/92055
security.gentoo.org/glsa/201706-02
github.com/shadow-maint/shadow/issues/27
bugzilla.suse.com/show_bug.cgi?id=979282
openwall.com/lists/oss-security/2016/07/25/7
Show 19 moreShow less
openwall.com/lists/oss-security/2016/07/19/6
openwall.com/lists/oss-security/2016/07/20/2
debian.org/security/2017/dsa-3793
nvd.nist.gov/vuln/detail/CVE-2016-6252
github.com/advisories/GHSA-8rg4-9fq3-cf7g
security.alpinelinux.org/vuln/CVE-2016-6252
docs.bell-sw.com/security/cves/CVE-2016-6252
security-tracker.debian.org/tracker/CVE-2016-6252
advisories.mageia.org/MGASA-2017-0024.html
bugs.mageia.org/show_bug.cgi?id=18984
suse.com/support/update/announcement/2018/suse-su-20181995-1
bugzilla.suse.com/1099310
suse.com/security/cve/CVE-2016-6252
suse.com/support/update/announcement/2018/suse-su-20181997-1
suse.com/support/update/announcement/2018/suse-su-20181997-2
ubuntu.com/security/CVE-2016-6252
ubuntu.com/security/notices/USN-3276-1
cve.org/CVERecord?id=CVE-2016-6252
ubuntu.com/security/CVE-2017-2616