CVE-2016-6136: Race Condition
In function auditlogsingleexecvearg(), the whole argument is fetched from user space twice via copyfromuser(). In the first loop, it is firstly fetched (line 1038) to verify, aka looking for non-ascii chars. While in the second loop, the whole argument is fetched again (line 1105) from user space and used at line 1121 and line 1123 respectively depends on the previous verification.
Upstream bug:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-6136 https://bugzilla.kernel.org/showbug.cgi?id=120681 https://github.com/linux-audit/audit-kernel/issues/18 https://www.redhat.com/archives/linux-audit/2016-June/msg00029.html
Upstream patch:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=43761473c254b45883a64441dd0bc85a42f3645c
Other sources
Race condition in the auditlogsingleexecvearg function in kernel/auditsc.c in the Linux kernel through 4.7 allows local users to bypass intended character-set restrictions or disrupt system-call auditing by changing a certain string, aka a "double fetch" vulnerability.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 3.13.0-98.145 - Upgrade
Upgrade
ubuntu/linux-lts-vividto a version that resolves this vulnerability.Fixed in 3.19.0-71.79~14.04.1 - Upgrade
Upgrade
ubuntu/linux-lts-xenialto a version that resolves this vulnerability.Fixed in 4.4.0-38.57~14.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 4.4.0-38.57 - Upgrade
Upgrade
ubuntu/linux-raspi2to a version that resolves this vulnerability.Fixed in 4.4.0-1023.29 - Upgrade
Upgrade
ubuntu/linux-snapdragonto a version that resolves this vulnerability.Fixed in 4.4.0-1026.29 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 43761473c254b45883a64441dd0bc85a42f3645c
Event History
Frequently Asked Questions
What is the severity of CVE-2016-6136?
CVE-2016-6136 has a medium severity rating, indicating potential impact but not critical.
How do I fix CVE-2016-6136?
To fix CVE-2016-6136, update your Linux kernel to version 4.8 or later, as this vulnerability is addressed in those versions.
What types of systems are affected by CVE-2016-6136?
CVE-2016-6136 affects Linux kernels up to version 4.7 and certain versions of Google Android.
What is the impact of CVE-2016-6136?
The impact of CVE-2016-6136 includes potential information disclosure due to improper handling of user space arguments.
Is CVE-2016-6136 exploitable remotely?
CVE-2016-6136 is not directly exploitable remotely, as it requires local user access to trigger the vulnerability.