CVE-2026-99009

Source
https://cve.org/CVERecord?id=CVE-2026-99009
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99009.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-99009
Downstream
Published
2026-10-23T12:20:34Z
Modified
2026-11-01T02:30:51Z
Summary
Bluetooth: RFCOMM: connect the session socket without rfcomm_mutex
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: RFCOMM: connect the session socket without rfcomm_mutex

An RFCOMM connect() issued while a BR/EDR link is being authenticated makes lockdep report a circular dependency, and the reported cycle is a real AB/BA between rfcomm_mutex and hdev->lock.

rfcomm_security_cfm() is called from the HCI event path, which already holds hdev->lock:

hci_rx_work() hci_event_packet() hci_cc_read_enc_key_size() [hdev->lock] hci_encrypt_cfm() [hci_cb_list_lock] rfcomm_security_cfm() [rfcomm_mutex]

while an RFCOMM connect() from userspace takes the same two locks the other way round:

rfcomm_sock_connect() rfcomm_dlc_open() [rfcomm_mutex] __rfcomm_dlc_open() rfcomm_session_create() kernel_connect() l2cap_sock_connect() l2cap_chan_connect() [hdev->lock]

WARNING: possible circular locking dependency detected kworker/u131:1/1128 is trying to acquire lock: rfcomm_mutex, at: rfcomm_security_cfm+0x31/0x3e0 [rfcomm] but task is already holding lock: hci_cb_list_lock, at: hci_cc_read_enc_key_size+0x1d2/0xcc0 Chain exists of: rfcomm_mutex --> &hdev->lock --> hci_cb_list_lock

hci_auth_complete_evt() and hci_encrypt_change_evt() reach the callback the same way.

Both orders have to be seen in the same boot, which is why a BR/EDR connection alone is not enough to show it: a session set up by the remote side is created by rfcomm_accept_connection() in krfcommd, which calls kernel_accept() and never takes hdev->lock under rfcomm_mutex. Connecting a device that authenticates and encrypts the link and then calling connect() on an RFCOMM socket towards any address - the connect does not have to succeed, the order is recorded before the page timeout

  • reports it every time.

Only the session socket has to be connected with the lock held, and it does not: nothing else can see the socket before it is put on the session list. So connect it first and take rfcomm_mutex afterwards, which removes the rfcomm_mutex -> hdev->lock order for good, rather than keeping the HCI event path out of rfcomm_mutex.

rfcomm_session_create() becomes rfcomm_session_connect(), which returns the connected socket without touching the session list, and rfcomm_dlc_open() adds the session once it holds the lock again. If another opener added a session for the same pair while this socket was connecting, that session is used and this socket is dropped. __rfcomm_dlc_open() now takes the session it should use, and its state check runs after the lock is re-acquired, so a DLC that was opened or closed in the meantime is still handled.

Over an existing ACL link the connection can complete before the session reaches the list, and the wakeup from the socket callback is then lost, so krfcommd is woken once the session is visible.

Connecting without the lock opens a window in which the socket can be closed. The DLC is not on a session yet, so rfcomm_dlc_close() finds nothing to do and returns without touching it, and rfcomm_dlc_open() would then attach a DLC whose owner is gone. rfcomm_dlc_close() now marks such a DLC with RFCOMM_CLOSED, and rfcomm_dlc_open() checks the mark once it holds rfcomm_mutex again and drops the socket instead of attaching the DLC. The mark is cleared when an open starts, so a DLC that is reused is not affected. This covers both callers of rfcomm_dlc_open(), the socket and the tty layer.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99009.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
62ce8b33eb238cf18c15207332fbdc26d858f592
Fixed
d7a3bf6f55ab77d465206b25fe3418091c3d4b92
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3873f3449701b3dc98cba577923be6493598e7a1
Fixed
172b152119643018a2ed792e5096f33a4491c7de
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7ded3264106418c6456ccceaafd9fda596ce12c3
Fixed
caf78390f78a005d5cdc1db2eb467b2794bbf020
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
82425b14f0fb22e46cfddc56d6465570f5ed0ce6
Fixed
4dc3d5a004b8fd59f3c905631dbb18cb601b1b41
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b7841ffad08e911e8c4b9470f3fa08423568940
Fixed
d2206e8c78be69d21d4f5343c3e99fbaeef41cbb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
946d76db77ee5f922968ce558629ae47b381e3fc
Fixed
cc7732b8549ecb6f02457edeb8db1f6d255e381c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fbf7961964a6e93360179f64712320ae9a1e9577
Fixed
f492de11b325446b0b11bc2eb86e1f546eaa61b6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
759c185d0bbdb131357408f50b8735e04ed3caff
Fixed
ac022970e9fb0a5f7e7d1f6c8e104c1ed924dd1c

Affected versions

v5.*
v5.10.270
v5.10.271
v5.10.272
v5.15.221
v5.15.222
v5.15.223
v6.*
v6.1.188
v6.1.189
v6.1.190
v6.12.109
v6.12.110
v6.12.111
v6.12.112
v6.12.113
v6.18.50
v6.18.51
v6.18.52
v6.18.53
v6.18.54
v6.18.55
v6.18.56
v6.18.57
v6.6.157
v6.6.158
v6.6.159
v7.*
v7.2.10
v7.2.4
v7.2.5
v7.2.6
v7.2.7
v7.2.8
v7.2.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99009.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.270
Fixed
5.10.273
Type
ECOSYSTEM
Events
Introduced
5.15.221
Fixed
5.15.224
Type
ECOSYSTEM
Events
Introduced
6.1.188
Fixed
6.1.191
Type
ECOSYSTEM
Events
Introduced
6.6.157
Fixed
6.6.160
Type
ECOSYSTEM
Events
Introduced
6.12.109
Fixed
6.12.114
Type
ECOSYSTEM
Events
Introduced
6.18.50
Fixed
6.18.58
Type
ECOSYSTEM
Events
Introduced
7.2.4
Fixed
7.2.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99009.json"