CVE-2016-6187
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5...
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
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
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
CVE-2016-6187- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-119, CWE-264
- Updated
- 2026-11-02
CVE List No score
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
CVE-2016-6187- Updated
- 2026-11-02
EUVDEUVD-2016-7120 No score
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
EUVD-2016-7120- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f2rr-m524-j23q
7.8
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5...
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
GHSA-f2rr-m524-j23q- 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-119
- Updated
- 2026-11-02
OSV
7.8
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
CVE-2016-6187- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-6187
7.8
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
DEBIAN-CVE-2016-6187- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-6187
7.8
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook.
- Record
UBUNTU-CVE-2016-6187- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - 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
OSVopenSUSE-SU-2024:10128-1 No score
kernel-debug-4.8.13-1.1 on GA media
These are all security issues fixed in the kernel-debug-4.8.13-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10128-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
linuxDebian:12 |
before 4.6.4-1 | 4.6.4-1 |
linuxDebian:13 |
before 4.6.4-1 | 4.6.4-1 |
linuxDebian:14 |
before 4.6.4-1 | 4.6.4-1 |
kernel-sourceopenSUSE:Tumbleweed From an advisory covering 82 CVEs |
before 4.8.13-1.1 | 4.8.13-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Linux Kernel < 4.5.1 - Off-By-One (PoC) | 2016-10-16 |
| PoC in GitHub | vnik5287/cve-2016-6187-poc | 2019-07-23 |
| PoC in GitHub | Milo-D/CVE-2016-6187_LPE | 2024-05-12 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, exploits, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-6187 is a high vulnerability (CVSS 7.8) in Linux Kernel, published August 6, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.40%, the 84th percentile. Fixed in linux 4.6.4-1.
References
github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca
git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=30a46a4647fd1df9cf52e43bf467f0d9265096ca
kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.5
openwall.com/lists/oss-security/2016/07/09/2
marc.info?l=linux-kernel&m=146793642811929&w=2
bugzilla.redhat.com/show_bug.cgi?id=1354383
Show 89 moreShow less
securityfocus.com/bid/91696
nvd.nist.gov/vuln/detail/CVE-2016-6187
github.com/advisories/GHSA-f2rr-m524-j23q
security-tracker.debian.org/tracker/CVE-2016-6187
ubuntu.com/security/CVE-2016-6187
openwall.com/lists/oss-security/2016/07/09/1
cve.org/CVERecord?id=CVE-2016-6187
suse.com/security/cve/CVE-2009-3939
suse.com/security/cve/CVE-2009-4026
suse.com/security/cve/CVE-2009-4027
suse.com/security/cve/CVE-2009-4131
suse.com/security/cve/CVE-2009-4138
suse.com/security/cve/CVE-2009-4536
suse.com/security/cve/CVE-2009-4538
suse.com/security/cve/CVE-2010-1146
suse.com/security/cve/CVE-2010-1436
suse.com/security/cve/CVE-2010-1641
suse.com/security/cve/CVE-2010-2066
suse.com/security/cve/CVE-2010-2942
suse.com/security/cve/CVE-2010-2954
suse.com/security/cve/CVE-2010-2955
suse.com/security/cve/CVE-2010-3081
suse.com/security/cve/CVE-2010-3296
suse.com/security/cve/CVE-2010-3297
suse.com/security/cve/CVE-2010-3298
suse.com/security/cve/CVE-2010-3301
suse.com/security/cve/CVE-2010-3310
suse.com/security/cve/CVE-2011-0711
suse.com/security/cve/CVE-2011-0712
suse.com/security/cve/CVE-2011-1020
suse.com/security/cve/CVE-2011-1180
suse.com/security/cve/CVE-2011-1577
suse.com/security/cve/CVE-2011-1581
suse.com/security/cve/CVE-2011-2203
suse.com/security/cve/CVE-2011-4604
suse.com/security/cve/CVE-2012-0056
suse.com/security/cve/CVE-2012-3412
suse.com/security/cve/CVE-2012-3520
suse.com/security/cve/CVE-2013-0160
suse.com/security/cve/CVE-2013-0231
suse.com/security/cve/CVE-2013-0913
suse.com/security/cve/CVE-2013-2850
suse.com/security/cve/CVE-2014-0038
suse.com/security/cve/CVE-2014-0196
suse.com/security/cve/CVE-2014-0691
suse.com/security/cve/CVE-2014-8133
suse.com/security/cve/CVE-2015-1333
suse.com/security/cve/CVE-2015-7550
suse.com/security/cve/CVE-2015-7884
suse.com/security/cve/CVE-2015-7885
suse.com/security/cve/CVE-2015-8539
suse.com/security/cve/CVE-2015-8660
suse.com/security/cve/CVE-2016-0723
suse.com/security/cve/CVE-2016-0728
suse.com/security/cve/CVE-2016-1237
suse.com/security/cve/CVE-2016-1583
suse.com/security/cve/CVE-2016-2184
suse.com/security/cve/CVE-2016-2185
suse.com/security/cve/CVE-2016-2186
suse.com/security/cve/CVE-2016-2384
suse.com/security/cve/CVE-2016-3134
suse.com/security/cve/CVE-2016-3135
suse.com/security/cve/CVE-2016-3136
suse.com/security/cve/CVE-2016-3140
suse.com/security/cve/CVE-2016-3689
suse.com/security/cve/CVE-2016-3713
suse.com/security/cve/CVE-2016-4470
suse.com/security/cve/CVE-2016-4485
suse.com/security/cve/CVE-2016-4486
suse.com/security/cve/CVE-2016-4557
suse.com/security/cve/CVE-2016-4558
suse.com/security/cve/CVE-2016-4569
suse.com/security/cve/CVE-2016-4578
suse.com/security/cve/CVE-2016-4951
suse.com/security/cve/CVE-2016-4997
suse.com/security/cve/CVE-2016-4998
suse.com/security/cve/CVE-2016-5195
suse.com/security/cve/CVE-2016-5244
suse.com/security/cve/CVE-2016-5829
suse.com/security/cve/CVE-2016-6187
suse.com/security/cve/CVE-2016-6480
suse.com/security/cve/CVE-2016-6516
suse.com/security/cve/CVE-2016-6828
suse.com/security/cve/CVE-2016-7039
suse.com/security/cve/CVE-2016-7042
suse.com/security/cve/CVE-2016-7425
suse.com/security/cve/CVE-2016-7913
suse.com/security/cve/CVE-2016-9555
suse.com/security/cve/CVE-2016-9576