CVE-2026-99807: Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
A peer can send an ERTM RFC option with a TxWindow of zero, which is out of spec. It is stored in remote_tx_win unchanged and later passed to l2cap_seq_list_init(), where roundup_pow_of_two(0) is undefined. On some architectures this results in a ZERO_SIZE_PTR list and a remote kernel oops.
A TxWindow above 63 is out of spec as well. With
6-bit sequence numbers we would then send more
unacknowledged frames than the sequence space can
tell apart.
Reply with L2CAP_CONF_UNACCEPT and propose the default TxWindow instead of accepting the value, so remote_tx_win always stays within 1 to 63. Keep the parameters of an earlier request then, and do not treat the request as done because an earlier one was.
Also refuse a zero size in l2cap_seq_list_init(), so any other path that reaches it with a zero TxWindow fails the channel instead of the kernel.
The Linux kernel CVE team has assigned CVE-2026-99807 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 5.10.275 with commit e8885e1db7df5be64e82ef2b953b4a32e8b10e0c Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 5.15.226 with commit 68340dca01ae410327b698fc989a610618870f1b Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 6.1.193 with commit d588344600b70c9508c33a8cdbb647aaa38fc00b Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 6.6.163 with commit 6918cd1b9dbcc4ceff17937730faf4f621cf617c Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 6.12.117 with commit 774badce7fd0afd8897ba1631b5aa7a259443fbf Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 6.18.63 with commit c00719deed5b6245dedeeb8d6d19cb852fe2ac4d Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 7.3.4 with commit a6a8d864fc7106aa997cb3ef4adc1ff9c5ea6a79 Issue introduced in 2.6.32 with commit f2fcfcd670257236ebf2088bbdf26f6a8ef459fe and fixed in 7.4-rc1 with commit c5ebb0245fe927cf5fa33510a9cb2799c4a2dd01
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-99807
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/e8885e1db7df5be64e82ef2b953b4a32e8b10e0c https://git.kernel.org/stable/c/68340dca01ae410327b698fc989a610618870f1b https://git.kernel.org/stable/c/d588344600b70c9508c33a8cdbb647aaa38fc00b https://git.kernel.org/stable/c/6918cd1b9dbcc4ceff17937730faf4f621cf617c https://git.kernel.org/stable/c/774badce7fd0afd8897ba1631b5aa7a259443fbf https://git.kernel.org/stable/c/c00719deed5b6245dedeeb8d6d19cb852fe2ac4d https://git.kernel.org/stable/c/a6a8d864fc7106aa997cb3ef4adc1ff9c5ea6a79 https://git.kernel.org/stable/c/c5ebb0245fe927cf5fa33510a9cb2799c4a2dd01