KernelScan.io

HIGH Introduced in 2.6.12

bluetooth HciFilter OOB

CVE-2026-98461

CVSS 7.1 / 10.0 KernelScan AI

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

01

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.

02

Engine v0.9.0

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.

Affectednet/bluetooth/hci_sock.c (bluetooth/hci_sock)

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.

03

BranchIntroducedFixed inPatch commit
5.102.6.125.10.27139e99d85071b
5.152.6.125.15.222ebdd49cec380
6.12.6.126.1.1892501a3b7b714
6.122.6.126.12.1123976bbcd43b9
6.182.6.126.18.55f894f6292d51
6.62.6.126.6.158dca25c204f71
7.22.6.127.2.91a92763c2ba7
mainline2.6.127.3b0a6cf99afd5
cip/4.192.6.124.19.325-cip137083fa56c99ea
cip/4.19-rt2.6.124.19.325-cip137-rt51083fa56c99ea
cip/4.42.6.124.4.302-cip1169b9cc3bdce5c
cip/5.102.6.125.10.271-cip7839e99d85071b
cip/5.10-rt2.6.125.10.272-cip79-rt3539e99d85071b
cip/6.12.6.126.1.189-cip612501a3b7b714
cip/6.1-rt2.6.126.1.189-cip61-rt322501a3b7b714
cip/6.122.6.126.12.112-cip333976bbcd43b9

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51
cip/4.4Fixed in 4.4.302-cip116
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)