Buffer overflow in Linux Kernel
CVE-2016-6187
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.024, 84.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- Milo-D/CVE-2016-6187_LPE (7 stars, last pushed 2024-07-19): Kernel Exploit for CVE-2016-6187 (Local Privilege Escalation)
- vnik5287/cve-2016-6187-poc (6 stars, last pushed 2019-07-23): cve-2016-6187
Also mentioned in 25 other repositories (ARPSyndicate/cvemon, chadjoan/cdj-kernel-config, kdn111/linux-kernel-exploitation, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca (Patch, Issue Tracking)
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Issue Tracking)
- www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.5 (Release Notes)
- [oss-security] 20160709 Re: CVE request: apparmor: oops in apparmor_setprocattr() (mailing-list, Mailing List, Third Party Advisory)
- [linux-kernel] 20160708 [GIT PULL] Fix for AppArmor oops in apparmor_setprocattr() (mailing-list, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Issue Tracking)
- www.securityfocus.com/bid/91696 (Third Party Advisory, VDB Entry, vdb-entry)
This CVE has public exploit evidence. See the latest CVEs with public exploits.