HIGH Introduced in 2.6.12
bluetooth HciFilter OOB
CVE-2026-98461
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sock: validate event length before filtering is_filtered_packet() reads the event code from skb->data[0] without first checking that the skb is nonempty. When an opcode filter is configured, it also reads the command opcode at offsets 3 or 4 without checking that a Command Complete or Command Status event is long enough. hci_send_to_sock() invokes the filter before hci_event_packet() validates the event header. A malformed event supplied by a controller or a vhci device can therefore cause an out-of-bounds read. Keep the unmasked event code for the opcode checks. The masked value is needed for the 64-bit event bitmap, but using it to identify command events aliases event codes above 0x3f. In particular, Synchronous Train Complete (0x4f) was treated as Command Status (0x0f) even though its payload has no opcode. Reject actual command events that are too short for the field being inspected. A truncated command event cannot match a configured opcode.
02KernelScan AI Analysis
Risk summary
A malformed HCI event from a Bluetooth controller or virtual HCI device can cause an out-of-bounds read in the kernel's event filtering logic, potentially leaking kernel memory or triggering a kernel panic. The flaw is reachable by any device within Bluetooth radio range (adjacent) or by a local process with CAP_NET_ADMIN access to the vhci interface.
Vulnerability analysis
The kernel's HCI socket filter inspects incoming Bluetooth events before validating their length. When an opcode filter is active, the filter reads the event code and command opcode fields at fixed offsets without first ensuring the packet buffer contains enough data. A truncated or empty event supplied by a malicious controller or a compromised vhci device causes the filter to read past the end of the allocated buffer, exposing adjacent kernel memory or faulting on an unmapped page. The fix adds explicit length checks before each read, uses the unmasked event code to avoid aliasing different event types, and treats undersized command events as non-matching so they are dropped safely.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.12 | 5.10.271 | 39e99d85071b |
| 5.15 | 2.6.12 | 5.15.222 | ebdd49cec380 |
| 6.1 | 2.6.12 | 6.1.189 | 2501a3b7b714 |
| 6.12 | 2.6.12 | 6.12.112 | 3976bbcd43b9 |
| 6.18 | 2.6.12 | 6.18.55 | f894f6292d51 |
| 6.6 | 2.6.12 | 6.6.158 | dca25c204f71 |
| 7.2 | 2.6.12 | 7.2.9 | 1a92763c2ba7 |
| mainline | 2.6.12 | 7.3 | b0a6cf99afd5 |
| cip/5.10 | 2.6.12 | 5.10.271-cip78 | 39e99d85071b |
| cip/5.10-rt | 2.6.12 | 5.10.272-cip79-rt35 | 39e99d85071b |
| cip/6.1 | 2.6.12 | 6.1.189-cip61 | 2501a3b7b714 |
| cip/6.1-rt | 2.6.12 | 6.1.189-cip61-rt32 | 2501a3b7b714 |
| cip/6.12 | 2.6.12 | 6.12.112-cip33 | 3976bbcd43b9 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |