{"id":"CVE-2026-98290","published":"2026-10-06T08:45:50Z","modified":"2026-10-19T09:17:01Z","title":"Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: RFCOMM: avoid socket lock inversion in listener cleanup\n\nrfcomm_sock_cleanup_listen() closes unaccepted child sockets through\nrfcomm_sock_close(), which takes the child socket lock before\nrfcomm_dlc_close() acquires rfcomm_mutex. The RFCOMM worker takes these\nlocks in reverse order while handling connections and DLC state changes,\nso lockdep reports a possible deadlock.\n\nClose dequeued children without taking their socket lock. The accept queue\nowns a reference to each child, and bt_accept_dequeue() locks the child\nwhile unlinking it and clearing its parent pointer.\n\nDropping the child lock makes it important to prevent a concurrent\nrfcomm_connect_ind() from enqueueing a new child after cleanup observes an\nempty queue. Set a listening socket to BT_CLOSED while its lock is still\nheld, before dropping the lock and draining the queue. The state check in\nrfcomm_connect_ind() then rejects new children once cleanup starts.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00236,"percentile":0.14657,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c","tags":[]},{"url":"https://git.kernel.org/stable/c/4aafb47301a799d3e01230d6568c4e93524e1523","tags":[]},{"url":"https://git.kernel.org/stable/c/c741977e413f5b49d306700820fb55ccb8269f5a","tags":[]},{"url":"https://git.kernel.org/stable/c/c6792c441767256030606eb82dca5d5fc360dd9a","tags":[]},{"url":"https://git.kernel.org/stable/c/bfce253f039eb5f58b810af267942a9f59207254","tags":[]},{"url":"https://git.kernel.org/stable/c/18174b166547ef41973cc19feb5ef9cab39a8def","tags":[]},{"url":"https://git.kernel.org/stable/c/801fb950cae7048eb7d83b18857d1ca37b8cd5a4","tags":[]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":2.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b7ce436a5d798bc59e71797952566608a4b4626b, < eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c",">= b7ce436a5d798bc59e71797952566608a4b4626b, < 4aafb47301a799d3e01230d6568c4e93524e1523",">= b7ce436a5d798bc59e71797952566608a4b4626b, < c741977e413f5b49d306700820fb55ccb8269f5a",">= b7ce436a5d798bc59e71797952566608a4b4626b, < c6792c441767256030606eb82dca5d5fc360dd9a",">= b7ce436a5d798bc59e71797952566608a4b4626b, < bfce253f039eb5f58b810af267942a9f59207254",">= b7ce436a5d798bc59e71797952566608a4b4626b, < 18174b166547ef41973cc19feb5ef9cab39a8def",">= b7ce436a5d798bc59e71797952566608a4b4626b, < 801fb950cae7048eb7d83b18857d1ca37b8cd5a4"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2026-93218","exploited":false,"provenance":"source"}}