CVE-2017-13167: Race Condition
A race condition was found in the kernel sound timer code in the sndtimeruserread() function in the sound/core/timer.c file. An unprivileged attacker can exploit the race condition to cause out-of-bound access which may lead to a system crash or other unspecified impact. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.
References:
https://source.android.com/security/bulletin/pixel/2017-12-01#kernel-components
Upstream fixes:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c3b1681375dc6e71d89a3ae00cc3ce9e775a8917
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4dff5c7b7093b19c19d3a100f8a3ad87cb7cd9e7
Other sources
An elevation of privilege vulnerability in the kernel sound timer. Product: Android. Versions: Android kernel. Android ID A-37240993.
— 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-85.129 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 4dff5c7b7093b19c19d3a100f8a3ad87cb7cd9e7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch c3b1681375dc6e71d89a3ae00cc3ce9e775a8917
Event History
Frequently Asked Questions
What level of access does an attacker need to exploit this issue?
The attacker needs local, unprivileged access to the affected system. No user interaction is required.
What is the likely impact if exploitation succeeds?
The race condition can cause an out-of-bounds access in the kernel sound timer code, potentially crashing the system. Other impacts are unspecified; privilege escalation cannot be fully ruled out, though it is considered unlikely.
Which code path is involved?
The flaw is in the kernel sound timer's snd_timer_user_read() function in sound/core/timer.c. Systems using an affected Android kernel or the listed Linux packages should be evaluated for the upstream fixes.
How can I determine whether a kernel build contains a fix?
Check the kernel source or vendor patch history for upstream commits c3b1681375dc6e71d89a3ae00cc3ce9e775a8917 and 4dff5c7b7093b19c19d3a100f8a3ad87cb7cd9e7. The available data does not provide fixed package or kernel version numbers.