Skip to content
OpenAdvisories
Unscored CVE-2017-1000410 EUVD-2017-1549GHSA-6jqp-hcfj-vjh3

The Linux kernel version 3.3-rc1 and later is affected by a vulnerability lies in the processing of incoming L2CAP commands - ConfigRequest…

Published Dec 7, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

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 l2cap_parse_conf_rsp and in the function l2cap_parse_conf_req the following variable is declared without initialization: struct l2cap_conf_efs 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 L2CAP_CONF_EFS: 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: l2cap_add_conf_opt(&ptr, L2CAP_CONF_EFS, sizeof(efs), (unsigned long) &efs); So by sending a configuration request, or response, that contains an L2CAP_CONF_EFS 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).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.14.7-1 —
Debian 13 linux 4.14.7-1 —
Debian 12 linux 4.14.7-1 —
Debian 9 linux 4.9.65-3+deb9u1 DSA-4073-1
Debian 8 linux 3.16.51-3+deb8u1 DSA-4082-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +2 No fix yet —
Ubuntu 20.04 LTS linux-gke +3 No fix yet —
Ubuntu 16.04 LTS linux 4.4.0-119.143 —
Ubuntu 16.04 LTS linux-aws 4.4.0-1054.63 —
Ubuntu 16.04 LTS linux-azure 4.15.0-1013.13~16.04.2 —
Ubuntu 16.04 LTS linux-gcp 4.15.0-1014.14~16.04.1 —
Ubuntu 16.04 LTS linux-gke 4.4.0-1031.31 —
Ubuntu 16.04 LTS linux-hwe 4.15.0-24.26~16.04.1 —
Ubuntu 16.04 LTS linux-kvm 4.4.0-1020.25 —
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1086.94 —
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1088.93 —
Ubuntu 14.04 LTS linux 3.13.0-168.218 USN-3933-1
Ubuntu 14.04 LTS linux-aws 4.4.0-1016.16 —
Ubuntu 14.04 LTS linux-lts-xenial 4.4.0-119.143~14.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1008.10 —
ReleasePackageFixed inAdvisory
RHEL 7 kernel-alt +1 4.14.0-49.el7a RHSA-2018:0654
RHEL 7 kernel-rt +10 3.10.0-862.rt56.804.el7 RHSA-2018:0676
RHEL 7 perf +18 3.10.0-862.el7 RHSA-2018:1062, RHSA-2018:0654
RHEL 6 perf +16 2.6.32-696.28.1.el6 RHSA-2018:1319
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.4 EUS perf +18 3.10.0-693.25.2.el7 RHSA-2018:1130
Red Hat MRG 2 kernel-rt +10 1:3.10.0-693.25.2.rt56.612.el6rt RHSA-2018:1170
ReleasePackageFixed inAdvisory
SLES 12 SP3 kernel-docs +4 4.4.103-6.33.1 SUSE-SU-2017:3398-1
SLES 12 SP2 kernel-docs +4 4.4.103-92.53.1 SUSE-SU-2017:3410-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 kernel-syms +2 4.4.103-6.33.1 SUSE-SU-2017:3398-1
SLES for SAP 12 SP2 kernel-syms +2 4.4.103-92.53.1 SUSE-SU-2017:3410-1
SLE Real Time 12 SP2 kernel-rt +3 4.4.104-24.1 SUSE-SU-2018:0213-1
SLE Live Patching 12 SP3 kgraft-patch-SLE12-SP3_Update_6 1-4.3.1 SUSE-SU-2017:3398-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_16 1-3.3.1 SUSE-SU-2017:3410-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 dtrace-modules-3.8.13-118.21.4.el6uek 0.4.5-3.el6 ELSA-2018-4134
Oracle Linux 7 dtrace-modules-3.8.13-118.21.4.el7uek 0.4.5-3.el7 ELSA-2018-4134
Oracle Linux 7 kernel-uek +5 3.8.13-118.21.4.el7uek ELSA-2018-4134, ELSA-2018-4114
Oracle Linux 7 perf +11 3.10.0-862.el7 ELSA-2018-1062

Advisories 15

References