CVE-2017-1000410: Infoleak
A vulnerability was found in the bluetooth subsystem in the Linux kernel. This flaw takes affect while processing of incoming L2CAP commands - ConfigRequest, and ConfigResponse messages as uninitialized stack variables may be returned to an attacker in their uninitialized state.
By manipulating the code flows that precede the handling of these configuration messages, an attacker can also gain some control over which data will be held in the uninitialized stack variables. This can allow him to bypass KASLR, and stack canaries protection - as both pointers and stack canaries may be leaked in this manner.
This kind of flaw is considered an 'information leak' and can be used by attackers to defeat defensive protection mechanisms that would usually mitigate other flaws.
References:
http://seclists.org/oss-sec/2017/q4/357
An upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=06e7e776ca4d3654
Other sources
The Linux kernel version 3.3-rc1 and later is affected by a vulnerability lies in the processing of incoming L2CAP commands - ConfigRequest, and ConfigResponse messages. This info leak is a result of uninitialized stack variables that may be returned to an attacker in their uninitialized state. By manipulating the code flows that precede the handling of these configuration messages, an attacker can also gain some control over which data will be held in the uninitialized stack variables. This can allow him to bypass KASLR, and stack canaries protection - as both pointers and stack canaries may be leaked in this manner. Combining this vulnerability (for example) with the previously disclosed RCE vulnerability in L2CAP configuration parsing (CVE-2017-1000251) may allow an attacker to exploit the RCE against kernels which were built with the above mitigations. These are the specifics of this vulnerability: In the function l2capparseconfrsp and in the function l2capparseconfreq the following variable is declared without initialization: struct l2capconfefs efs; In addition, when parsing input configuration parameters in both of these functions, the switch case for handling EFS elements may skip the memcpy call that will write to the efs variable: ... case L2CAPCONFEFS: if (olen == sizeof(efs)) memcpy(&efs, (void )val, olen); ... The olen in the above if is attacker controlled, and regardless of that if, in both of these functions the efs variable would eventually be added to the outgoing configuration request that is being built: l2capaddconfopt(&ptr, L2CAPCONFEFS, sizeof(efs), (unsigned long) &efs); So by sending a configuration request, or response, that contains an L2CAPCONFEFS element, but with an element length that is not sizeof(efs) - the memcpy to the uninitialized efs variable can be avoided, and the uninitialized variable would be returned to the attacker (16 bytes).
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.7-1Fixed in 7.1.8-1 - Upgrade
Upgrade
Linux kernel bluetooth L2CAPto a version that resolves this vulnerability.Patch 06e7e776ca4d3654
Event History
Frequently Asked Questions
What is the severity of CVE-2017-1000410?
CVE-2017-1000410 is considered a high-severity vulnerability due to its potential for exploitation in the Bluetooth subsystem of the Linux kernel.
How do I fix CVE-2017-1000410?
To fix CVE-2017-1000410, update your Linux kernel to version 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.
Which versions of Linux kernel are affected by CVE-2017-1000410?
CVE-2017-1000410 affects Linux kernel versions from 3.2 to 4.15, including the 4.15 release candidates.
Is there a workaround for CVE-2017-1000410?
Currently, there is no known workaround for CVE-2017-1000410 other than applying the recommended kernel patches.
What components are impacted by CVE-2017-1000410?
CVE-2017-1000410 specifically impacts the Bluetooth subsystem of the Linux kernel, particularly during the handling of L2CAP commands.