Vulnerability · Published Mar 18, 2024 · Assigned by Linux

CVE-2024-26635llc: Drop support for ETH_P_TR_802_2.

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.2%top 84.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: llc: Drop support for ETH_P_TR_802_2. syzbot reported an uninit-value bug below. [0] llc supports ETH_P_802_2 (0x0004) and used to support ETH_P_TR_802_2 (0x0011), and syzbot abused the latter to trigger the bug. write$tun(r0, &(0x7f0000000040)={@val={0x0, 0x11}, @val, @mpls={[], @llc={@snap={0xaa, 0x1, ')', "90e5dd"}}}}, 0x16) llc_conn_handler() initialises local variables {saddr,daddr}.mac based on skb in llc_pdu_decode_sa()/llc_pdu_decode_da() and passes them to __llc_lookup(). However, the initialisation is done only when skb->protocol is htons(ETH_P_802_2), otherwise, __llc_lookup_established() and __llc_lookup_listener() will read garbage. The missing initialisation existed prior to commit 211ed865108e ("net: delete all instances of special processing for token ring"). It removed the part to kick out the token ring stuff but forgot to close the door allowing ETH_P_TR_802_2 packets to sneak into llc_rcv(). Let's remove llc_tr_packet_type and complete the deprecation. [0]: BUG: KMSAN: uninit-value in __llc_lookup_established+0xe9d/0xf90 __llc_lookup_established+0xe9d/0xf90 __llc_lookup net/llc/llc_conn.c:611 [inline] llc_conn_handler+0x4bd/0x1360 net/llc/llc_conn.c:791 llc_rcv+0xfbb/0x14a0 net/llc/llc_input.c:206 __netif_receive_skb_one_core net/core/dev.c:5527 [inline] __netif_receive_skb+0x1a6/0x5a0 net/core/dev.c:5641 netif_receive_skb_internal net/core/dev.c:5727 [inline] netif_receive_skb+0x58/0x660 net/core/dev.c:5786 tun_rx_batched+0x3ee/0x980 drivers/net/tun.c:1555 tun_get_user+0x53af/0x66d0 drivers/net/tun.c:2002 tun_chr_write_iter+0x3af/0x5d0 drivers/net/tun.c:2048 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8ef/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x93/0xd0 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Local variable daddr created at: llc_conn_handler+0x53/0x1360 net/llc/llc_conn.c:783 llc_rcv+0xfbb/0x14a0 net/llc/llc_input.c:206 CPU: 1 PID: 5004 Comm: syz-executor994 Not tainted 6.6.0-syzkaller-14500-g1c41041124bd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.76-1DEBIAN-CVE-2024-26635
Debian:13linux6.6.15-1DEBIAN-CVE-2024-26635
Debian:14linux6.6.15-1DEBIAN-CVE-2024-26635
Ubuntu:22.04:LTSlinux5.15.0-106.116UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-aws-6.56.5.0-1020.20~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-aws-6.56.5.0-1020.20~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1021.22~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1021.22~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1020.20~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1020.20~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-35.35~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-35.35~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-35.35.1~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-35.35.1~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1019.19USN-6774-1
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1019.19UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1023.24USN-6774-1
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1023.24UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1023.23~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1023.23~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-35.35.1~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1014.15~22.04.1USN-6774-1
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1014.15~22.04.1UBUNTU-CVE-2024-26635
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34UBUNTU-CVE-2024-26635

Affected products (as reported)

VendorProductVersions
Linux Linux 211ed865108e24697b44bee5daac502ee6bdd4a4 – before 165ad1e22779685c3ed3dd349c6c4c632309cc62211ed865108e24697b44bee5daac502ee6bdd4a4 – before b8e8838f82f332ae80c643dbb1ca4418d0628097211ed865108e24697b44bee5daac502ee6bdd4a4 – before 9ccdef19cf9497c2803b005369668feb91cacdfd211ed865108e24697b44bee5daac502ee6bdd4a4 – before c0fe2fe7a5a291dfcf6dc64301732c8d3dc6a828211ed865108e24697b44bee5daac502ee6bdd4a4 – before 660c3053d992b68fee893a0e9ec9159228cffdc6211ed865108e24697b44bee5daac502ee6bdd4a4 – before f1f34a515fb1e25e85dee94f781e7869ae351fb8211ed865108e24697b44bee5daac502ee6bdd4a4 – before df57fc2f2abf548aa889a36ab0bdcc94a75399dc211ed865108e24697b44bee5daac502ee6bdd4a4 – before e3f9bed9bee261e3347131764e42aeedf1ffea61
Linux Linux 3.5

References