CVE-2016-6187
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Linux Kernel < 4.5.1 - Off-By-One (PoC)
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 4.6.4-1 |
| debian | bullseye | fixed | 4.6.4-1 |
| debian | forky | fixed | 4.6.4-1 |
| debian | sid | fixed | 4.6.4-1 |
| debian | trixie | fixed | 4.6.4-1 |
| linux-kernel | affected | 4.6.5 |
References
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=30a46a4647fd1df9cf52e43bf467f0d9265096ca
- http://marc.info/?l=linux-kernel&m=146793642811929&w=2
- http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.5
- http://www.openwall.com/lists/oss-security/2016/07/09/2
- http://www.securityfocus.com/bid/91696
- https://bugzilla.redhat.com/show_bug.cgi?id=1354383
- https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca
- https://security-tracker.debian.org/tracker/CVE-2016-6187
CWEs
CWE-119 CWE-264
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.