CVE-2026-89569: Bluetooth: RFCOMM: serialize security confirmation handling
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: RFCOMM: serialize security confirmation handling
rfcomm_security_cfm() looks up a session on session_list and then walks its DLC list without holding rfcomm_mutex. Since RFCOMM session teardown uses rfcomm_mutex, krfcommd can close and free the same session and DLCs concurrently:
hci_rx_work krfcommd
----------- ---------
rfcomm_session_get()
rfcomm_lock() rfcomm_session_close()
rfcomm_dlc_unlink() rfcomm_session_del()
kfree(s)
rfcomm_unlock()
walk s->dlcs
The callback can then read a freed session list head and touch freed DLCs while updating their flags or timers.
Serialize the session lookup and DLC traversal in rfcomm_security_cfm() with rfcomm_mutex. This matches the existing RFCOMM session lifetime rules and prevents concurrent rfcomm_session_del() / rfcomm_dlc_unlink() from tearing the objects down while the callback is using them.
KASAN reported:
BUG: KASAN: slab-use-after-free in rfcomm_security_cfm+0x41c/0x440 Read of size 8 at addr ffff888111fb3960 by task kworker/u17:1/89 Workqueue: hci0 hci_rx_work Call Trace: rfcomm_security_cfm+0x41c/0x440 hci_encrypt_cfm+0x139/0x590 hci_encrypt_change_evt+0x37b/0xc40 hci_event_packet+0x71b/0xb20 hci_rx_work+0x293/0x730 Allocated by task 69: rfcomm_session_add+0x9e/0x2f0 rfcomm_run+0x44b/0x41e0 Freed by task 69: kfree+0x131/0x3c0 rfcomm_session_del+0x188/0x220 rfcomm_run+0x1985/0x41e0
The Linux kernel CVE team has assigned CVE-2026-89569 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit 08c30aca9e698faddebd34f81e1196295f9dc063 and fixed in 6.12.109 with commit 1b7841ffad08e911e8c4b9470f3fa08423568940 Issue introduced in 3.10 with commit 08c30aca9e698faddebd34f81e1196295f9dc063 and fixed in 6.18.50 with commit 946d76db77ee5f922968ce558629ae47b381e3fc Issue introduced in 3.10 with commit 08c30aca9e698faddebd34f81e1196295f9dc063 and fixed in 7.2.4 with commit fbf7961964a6e93360179f64712320ae9a1e9577 Issue introduced in 3.10 with commit 08c30aca9e698faddebd34f81e1196295f9dc063 and fixed in 7.3-rc1 with commit 759c185d0bbdb131357408f50b8735e04ed3caff
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-89569
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/rfcomm/core.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/1b7841ffad08e911e8c4b9470f3fa08423568940 https://git.kernel.org/stable/c/946d76db77ee5f922968ce558629ae47b381e3fc https://git.kernel.org/stable/c/fbf7961964a6e93360179f64712320ae9a1e9577 https://git.kernel.org/stable/c/759c185d0bbdb131357408f50b8735e04ed3caff