CVE-2026-23299: Bluetooth: purge error queues in socket destructors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: purge error queues in socket destructors
When TX timestamping is enabled via SO_TIMESTAMPING, SKBs may be queued into sk_error_queue and will stay there until consumed. If userspace never gets to read the timestamps, or if the controller is removed unexpectedly, these SKBs will leak.
Fix by adding skb_queue_purge() calls for sk_error_queue in affected bluetooth destructors. RFCOMM does not currently use sk_error_queue.
The Linux kernel CVE team has assigned CVE-2026-23299 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 134f4b39df7b77225a80ef585c15d46f964f5e6f and fixed in 6.18.17 with commit 2b6c942a526635f5c61d2f000258e620da32d3a7 Issue introduced in 6.15 with commit 134f4b39df7b77225a80ef585c15d46f964f5e6f and fixed in 6.19.7 with commit 3de7c10a950b36affc692d8bd2ac713852580e56 Issue introduced in 6.15 with commit 134f4b39df7b77225a80ef585c15d46f964f5e6f and fixed in 7.0-rc2 with commit 21e4271e65094172aadd5beb8caea95dd0fbf6d7
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23299
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/bluetooth/hci_sock.c
net/bluetooth/iso.c
net/bluetooth/l2cap_sock.c
net/bluetooth/sco.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/2b6c942a526635f5c61d2f000258e620da32d3a7 https://git.kernel.org/stable/c/3de7c10a950b36affc692d8bd2ac713852580e56 https://git.kernel.org/stable/c/21e4271e65094172aadd5beb8caea95dd0fbf6d7