KernelScan.io

HIGH Introduced in 3.19

bluetooth RemoteOOB UAF

CVE-2026-98738

CVSS 7.5 / 10.0 KernelScan AI

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

01

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Serialize SMP remote OOB data access build_pairing_cmd() looks up remote OOB data and copies its contents without holding hdev->lock, which serializes the list's writers. After SMP finds an entry, a concurrent management Remove Remote OOB Data command can unlink and free it before SMP reads its present flag or copies its random and confirmation values. Removal can also invalidate an entry while the lookup is still traversing the list. KASAN reported: BUG: KASAN: slab-use-after-free in build_pairing_cmd+0x948/0x9b0 Call Trace: build_pairing_cmd+0x948/0x9b0 smp_recv_cb+0x459f/0x8110 l2cap_recv_frame+0xf14/0x9190 l2cap_recv_acldata+0xa64/0xd40 hci_rx_work+0x4ca/0x730 Allocated by task 87: hci_add_remote_oob_data+0x11d/0x530 add_remote_oob_data+0x282/0x400 hci_sock_sendmsg+0x1033/0x1ea0 Freed by task 93: hci_remote_oob_data_clear+0x108/0x1c0 remove_remote_oob_data+0x198/0x220 hci_sock_sendmsg+0x1033/0x1ea0 Taking hdev->lock in build_pairing_cmd() would recurse for callers that already hold it and invert the device-to-L2CAP lock order on the receive path. Add a per-device remote_oob_lock instead, held across the SMP lookup and copies and by the add, remove and clear helpers. Cover initialization and in-place updates as well, so SMP cannot read partially initialized or updated OOB values. Release the mutex on allocation failure, preserving the existing error return. The new critical sections acquire no device, connection or channel locks. Writers retain their existing hdev->lock protection, which continues to serialize the other readers without changing their locking or behavior.

02

Engine v0.9.0

Risk summary

A race condition in the Bluetooth SMP pairing code allows a remote device to trigger a use-after-free when a local administrator concurrently manages remote OOB authentication data. The vulnerability can lead to kernel memory corruption, enabling privilege escalation or denial of service. Systems with Bluetooth enabled and active OOB data management are at risk.

Affectednet/bluetooth/smp.c, net/bluetooth/hci_core.c (bluetooth subsystem)

Vulnerability analysis

The Bluetooth pairing code reads remote out-of-band authentication data without proper locking, allowing a race with management commands that add, remove, or clear that data. When a remote device initiates pairing, a concurrent administrative operation can free the authentication data while the pairing code is still using it, causing a use-after-free. The fix adds a dedicated lock that protects all access to the remote authentication data list, covering both the pairing read path and the management write paths. A remote Bluetooth device in radio range can trigger this by starting pairing while an administrator manages authentication data, requiring only proximity and no authentication.

03

BranchIntroducedFixed inPatch commit
6.123.196.12.1131e11412a1b98
6.183.196.18.56889c61e3d0f1
6.63.196.6.16094afa17d6bfd
7.23.197.2.10df5162eeb10e
mainline3.197.381a2345f1984
cip/6.123.196.12.114-cip341e11412a1b98

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.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)