Linux
Bluetooth: hci: validate codec capability element length
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci: validate codec capability element length Read Local Codec Capabilities returns a sequence of capability elements. Each element starts with a one-byte length followed by that many payload bytes. hci_read_codec_capabilities() checks that the skb contains the length byte, but then validates only caps->len against the remaining skb length. A malformed controller response with one remaining byte and caps->len set to one passes that check even though the element needs two bytes. The parser then records a two-byte capability and copies one byte beyond the advertised response payload into the codec list. Validate the full element size, including the length byte, before adding it to the accumulated capability length. This preserves all well-formed capability elements and drops only truncated controller responses.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < fc97fc8cf7f53fd3619db63e09050d20a3a0c4b1
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < 290b36f9d1eb9b2f72b40d826f26b4a182ab15f7
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < f2ad01f55e07f9531efcea736087e6b8658a3440
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < ec4d352747a62c1082f16c11a74b37d6eb85a5a3
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < 4bc16db0f11918e07edf9fdcda4a30cf4c9df45c
- >= 8961987f3f5fa2f2618e72304d013c8dd5e604a6, < c38fbcdc407925c7088f7e5f11c1fff73d2d35a2
Fixed in fc97fc8cf7f53fd3619db63e09050d20a3a0c4b1, 290b36f9d1eb9b2f72b40d826f26b4a182ab15f7, f2ad01f55e07f9531efcea736087e6b8658a3440, ec4d352747a62c1082f16c11a74b37d6eb85a5a3, 4bc16db0f11918e07edf9fdcda4a30cf4c9df45c, c38fbcdc407925c7088f7e5f11c1fff73d2d35a2
- 5.16
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to fc97fc8cf7f53fd3619db63e09050d20a3a0c4b1 or 290b36f9d1eb9b2f72b40d826f26b4a182ab15f7 or f2ad01f55e07f9531efcea736087e6b8658a3440 or ec4d352747a62c1082f16c11a74b37d6eb85a5a3 or 4bc16db0f11918e07edf9fdcda4a30cf4c9df45c or c38fbcdc407925c7088f7e5f11c1fff73d2d35a2 or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.