CVE-2026-31393: Bluetooth: L2CAP: Validate L2CAP_INFO_RSP payload length before access
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: Validate L2CAPINFORSP payload length before access
l2capinformationrsp() checks that cmdlen covers the fixed l2capinforsp header (type + result, 4 bytes) but then reads rsp->data without verifying that the payload is present:
- L2CAPITFEATMASK calls getunalignedle32(rsp->data), which reads 4 bytes past the header (needs cmdlen >= 8).
- L2CAPITFIXEDCHAN reads rsp->data[0], 1 byte past the header (needs cmdlen >= 5).
A truncated L2CAPINFORSP with result == L2CAPIRSUCCESS triggers an out-of-bounds read of adjacent skb data.
Guard each data access with the required payload length check. If the payload is too short, skip the read and let the state machine complete with safe defaults (featmask and remotefixedchan remain zero from kzalloc), so the info timer cleanup and l2capconnstart() still run and the connection is not stalled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Compensating control
In l2cap_information_rsp(), validate the L2CAP_INFO_RSP payload length before access: require cmd_len >= 8 for L2CAP_IT_FEAT_MASK and cmd_len >= 5 for L2CAP_IT_FIXED_CHAN. If the payload is too short, skip the read and retain the zero defaults for feat_mask and remote_fixed_chan so state-machine completion and connection startup proceed safely.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31393?
The severity of CVE-2026-31393 is rated high with a score of 8.1.
How do I fix CVE-2026-31393?
To fix CVE-2026-31393, update to the latest version of the Linux kernel where the vulnerability has been resolved.
What type of vulnerability is CVE-2026-31393?
CVE-2026-31393 is a vulnerability in the Bluetooth subsystem of the Linux kernel related to improper validation of L2CAP_INFO_RSP payload length.
What impacts does CVE-2026-31393 have?
CVE-2026-31393 can lead to potential information disclosure due to improper handling of Bluetooth L2CAP_INFO_RSP messages.
Who is affected by CVE-2026-31393?
Users of the Linux kernel that utilize Bluetooth functionality may be affected by CVE-2026-31393.