CVE-2026-98457: Bluetooth: L2CAP: validate frame length before control and FCS access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: validate frame length before control and FCS access
l2cap_data_rcv() unpacks either a two-byte or four-byte control field without first ensuring that it is present. A short ERTM or streaming-mode frame can therefore cause an out-of-bounds read.
There is a second short-frame case when CRC16 is enabled. After the control field is pulled, l2cap_check_fcs() subtracts two from skb->len without checking it. If fewer than two bytes remain, the subtraction wraps; skb_trim() leaves the buffer unchanged and the subsequent FCS load reads past the logical end of the frame.
Validate that the frame contains both its control field and, when enabled, its FCS before either field is accessed.
The Linux kernel CVE team has assigned CVE-2026-98457 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 5.10.271 with commit 4373ba79a267947e771c438507f7b103e30bdb21 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 5.15.222 with commit 965bd88ed4b4763cb765dd65885adcfa588c6b14 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 6.1.189 with commit 3acf6a0038ec0d4e8f4dcbfc2a557dff5f61cb70 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 6.6.158 with commit 8c7556c7cd17e073bbefdc4a9a4694a207544c37 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 6.12.112 with commit 1fdbb2a712a9a162ee817c959740face80b3d929 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 6.18.55 with commit c6a288e6001bcce16553c3853e0f5a45eaaf85c7 Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 7.2.9 with commit f557274af7b94b6134692e6f26b880f1e34c15bf Issue introduced in 2.6.32 with commit 1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a and fixed in 7.3-rc5 with commit 6c78a213d9070b610c7f418af2c25b66180b7e37
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-98457
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/l2cap_core.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/4373ba79a267947e771c438507f7b103e30bdb21 https://git.kernel.org/stable/c/965bd88ed4b4763cb765dd65885adcfa588c6b14 https://git.kernel.org/stable/c/3acf6a0038ec0d4e8f4dcbfc2a557dff5f61cb70 https://git.kernel.org/stable/c/8c7556c7cd17e073bbefdc4a9a4694a207544c37 https://git.kernel.org/stable/c/1fdbb2a712a9a162ee817c959740face80b3d929 https://git.kernel.org/stable/c/c6a288e6001bcce16553c3853e0f5a45eaaf85c7 https://git.kernel.org/stable/c/f557274af7b94b6134692e6f26b880f1e34c15bf https://git.kernel.org/stable/c/6c78a213d9070b610c7f418af2c25b66180b7e37