PT-2017-10961 · Linux+5 · Linux Kernel+5

Ben Seri

·

Published

2017-12-07

·

Updated

2019-04-08

·

CVE-2017-1000410

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Linux kernel versions 3.3-rc1 and later
Description The issue lies in the processing of incoming L2CAP commands, specifically ConfigRequest and ConfigResponse messages, due to uninitialized stack variables. This can lead to an information leak, allowing an attacker to bypass KASLR and stack canaries protection by manipulating code flows and leaking pointers and stack canaries. Combining this with a previously disclosed RCE vulnerability in L2CAP configuration parsing may enable exploitation against kernels built with mitigations.
The vulnerability is caused by the variable struct l2cap conf efs efs being declared without initialization in the functions l2cap parse conf rsp and l2cap parse conf req. When parsing input configuration parameters, the switch case for handling EFS elements may skip the memcpy call that writes to the efs variable, depending on the attacker-controlled olen value. As a result, the uninitialized efs variable is added to the outgoing configuration request, allowing an attacker to receive the uninitialized variable (16 bytes) by sending a configuration request or response with an L2CAP CONF EFS element and an element length that is not sizeof(efs).
Recommendations For Linux kernel versions 3.3-rc1 and later, consider disabling the l2cap parse conf rsp and l2cap parse conf req functions until a patch is available. Restrict access to the L2CAP configuration parsing module to minimize the risk of exploitation. Avoid using the L2CAP CONF EFS element in configuration requests or responses until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

RCE

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2018-1046
ALT-PU-2018-1047
ALT-PU-2018-1048
ALT-PU-2018-1557
ALT-PU-2019-1433
CESA-2018_1062
CESA-2018_1319
CVE-2017-1000410
DSA-4073-1
DSA-4082-1
MGASA-2018-0106
MGASA-2018-0107
MGASA-2018-0126
MGASA-2018-0127
OPENSUSE-SU-2017_3358-1
OPENSUSE-SU-2017_3359-1
RHSA-2018:0654
RHSA-2018:0676
RHSA-2018:1062
RHSA-2018:1130
RHSA-2018:1170
RHSA-2018:1319
RHSA-2018_0676
RHSA-2018_1062
RHSA-2018_1319
SUSE-SU-2017:3398-1
SUSE-SU-2017:3410-1
SUSE-SU-2017_3398-1
SUSE-SU-2017_3410-1
SUSE-SU-2018:0213-1
USN-3933-1
USN-3933-2

Affected Products

Alt Linux
Centos
Linux Kernel
Red Hat
Suse
Ubuntu