Bluetooth: L2CAP: validate frame length before control and FCS access
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f557274af7b94b6134692e6f26b880f1e34c15bf, Kernel 1fdbb2a712a9a162ee817c959740face80b3d929, Kernel 3acf6a0038ec0d4e8f4dcbfc2a557dff5f61cb70 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <f557274af7b94b6134692e6f26b880f1e34c15bf, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <1fdbb2a712a9a162ee817c959740face80b3d929, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <3acf6a0038ec0d4e8f4dcbfc2a557dff5f61cb70, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <4373ba79a267947e771c438507f7b103e30bdb21, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <6c78a213d9070b610c7f418af2c25b66180b7e37, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <8c7556c7cd17e073bbefdc4a9a4694a207544c37, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <965bd88ed4b4763cb765dd65885adcfa588c6b14, >=1c2acffb76d4bc5fd27c4ea55cc27ad8ead10f9a <c6a288e6001bcce16553c3853e0f5a45eaaf85c7, =2.6.32 | f557274af7b94b6134692e6f26b880f1e34c15bf, 1fdbb2a712a9a162ee817c959740face80b3d929, 3acf6a0038ec0d4e8f4dcbfc2a557dff5f61cb70, 4373ba79a267947e771c438507f7b103e30bdb21, 6c78a213d9070b610c7f418af2c25b66180b7e37, 8c7556c7cd17e073bbefdc4a9a4694a207544c37, 965bd88ed4b4763cb765dd65885adcfa588c6b14, c6a288e6001bcce16553c3853e0f5a45eaaf85c7 |
| linux-kernel: Kernel | >=5.11.0 <5.15.222, >=5.16.0 <6.1.189, >=6.13.0 <6.18.55, >=6.19.0 <7.2.9, >=6.2.0 <6.6.158, >=6.7.0 <6.12.112, >=2.6.32 <5.10.271 | 5.15.222, 6.1.189, 6.18.55, 7.2.9, 6.6.158, 6.12.112, 5.10.271 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket