Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 4.6.4-1 | — |
| Debian 13 | linux | 4.6.4-1 | — |
| Debian 12 | linux | 4.6.4-1 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | kernel-source | 4.8.13-1.1 | openSUSE-SU-2024:10128-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Linux Kernel < 4.5.1 - Off-By-One (PoC) EDB-44301 · dos · Oct 16, 2016
GitHub 2 repositories
-
Milo-D/CVE-2016-6187_LPE ★ 7 · May 12, 2024
Kernel Exploit for CVE-2016-6187 (Local Privilege Escalation)
-
vnik5287/cve-2016-6187-poc ★ 6 · Jul 23, 2019
cve-2016-6187
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- openSUSE-SU-2024:10128-1 kernel-debug-4.8.13-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=30a46a4647fd1df9cf52e43bf467f0d9265096ca
- http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.5
- [oss-security] 20160709 Re: CVE request: apparmor: oops in apparmor_setprocattr() mailing-list
- [linux-kernel] 20160708 [GIT PULL] Fix for AppArmor oops in apparmor_setprocattr() mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=1354383
- 91696 vdb-entry