CVE-2026-99807: Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests
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 remotetxwin unchanged and later passed to l2capseqlistinit(), where rounduppowoftwo(0) is undefined. On some architectures this results in a ZEROSIZEPTR 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 L2CAPCONFUNACCEPT and propose the default TxWindow instead of accepting the value, so remotetxwin 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 l2capseqlistinit(), so any other path that reaches it with a zero TxWindow fails the channel instead of the kernel.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Reject invalid ERTM TxWindow values in L2CAP configuration requests: reply with L2CAP_CONF_UNACCEPT and propose the default TxWindow rather than accepting the value. Keep remote_tx_win within 1–63, do not treat a request as complete based on parameters from an earlier request, and refuse a zero size in l2cap_seq_list_init().
Event History
Frequently Asked Questions
Who can trigger this issue?
A Bluetooth peer that can send L2CAP Enhanced Retransmission Mode (ERTM) configuration requests can trigger it by supplying an invalid TxWindow value. The affected processing occurs in the Linux kernel Bluetooth L2CAP implementation.
What invalid values are involved, and what is the impact?
A TxWindow of zero can reach sequence-list initialization, where rounding zero to a power of two is undefined and can cause a remote kernel oops on some architectures. Values above 63 are also invalid and can permit more unacknowledged frames than the 6-bit sequence-number space can distinguish.
What does the fix do when it receives an invalid TxWindow?
It rejects invalid ERTM configuration values with L2CAP_CONF_UNACCEPT and proposes the default TxWindow rather than storing the peer-supplied value. It also makes zero-sized sequence-list initialization fail the channel instead of allowing a kernel failure.