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.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6187
Reference (s):
- BID:91696
- URL: http://www.securityfocus.com/bid/91696
- 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
- https://bugzilla.redhat.com/show_bug.cgi?id=1354383

