CVE-2026-98602: Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
Fix multiple out-of-bounds reads in Bluetooth BNEP frame processing:
1. In bnep_rx_frame() and bnep_ctrl_frame() (net/bluetooth/bnep/core.c), use pskb_may_pull() to verify the BNEP header, control type byte, filter count, and extension headers exist before reading them, and return 0 after handling BNEP_CONTROL instead of falling through to Ethernet frame submission when no extension headers follow.
2. In bnep_net_xmit() (net/bluetooth/bnep/netdev.c), verify skb->len >= ETH_HLEN with pskb_may_pull() before reading the 14-byte Ethernet header to prevent an out-of-bounds heap read and infoleak on short AF_PACKET TX frames.
The Linux kernel CVE team has assigned CVE-2026-98602 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.271 with commit 7af80ad2cebfe2f1879d6a39a1aaa061d9c4e1ca Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.222 with commit 667aa703e11cdc237d169393bc6a5ea9acbb33c2 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.189 with commit 3e605ff5932afe0970c2beca66f2f1ba2babe4dd Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.158 with commit 035f9b1809861967e58ce652680d70ea1502058f Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.112 with commit 1e7aebc188f889b56c3aaeb6133ef6d77022c887 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.55 with commit 8f31031326994d1abfcc6ebb6927ef96e51fb9ff Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.9 with commit ad0d2d4ada51321db787262ef343193c712b76b5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc5 with commit f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98602
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/bluetooth/bnep/core.c
net/bluetooth/bnep/netdev.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7af80ad2cebfe2f1879d6a39a1aaa061d9c4e1ca https://git.kernel.org/stable/c/667aa703e11cdc237d169393bc6a5ea9acbb33c2 https://git.kernel.org/stable/c/3e605ff5932afe0970c2beca66f2f1ba2babe4dd https://git.kernel.org/stable/c/035f9b1809861967e58ce652680d70ea1502058f https://git.kernel.org/stable/c/1e7aebc188f889b56c3aaeb6133ef6d77022c887 https://git.kernel.org/stable/c/8f31031326994d1abfcc6ebb6927ef96e51fb9ff https://git.kernel.org/stable/c/ad0d2d4ada51321db787262ef343193c712b76b5 https://git.kernel.org/stable/c/f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e