{"id":"CVE-2026-98290","summary":"Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup","details":"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.","modified":"2026-10-08T02:52:56.584606181Z","published":"2026-10-06T08:45:50.299Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98290.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/18174b166547ef41973cc19feb5ef9cab39a8def"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4aafb47301a799d3e01230d6568c4e93524e1523"},{"type":"WEB","url":"https://git.kernel.org/stable/c/801fb950cae7048eb7d83b18857d1ca37b8cd5a4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfce253f039eb5f58b810af267942a9f59207254"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6792c441767256030606eb82dca5d5fc360dd9a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c741977e413f5b49d306700820fb55ccb8269f5a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98290.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98290"},{"type":"PACKAGE","url":"https://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":"b7ce436a5d798bc59e71797952566608a4b4626b"},{"fixed":"eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c"},{"fixed":"4aafb47301a799d3e01230d6568c4e93524e1523"},{"fixed":"c741977e413f5b49d306700820fb55ccb8269f5a"},{"fixed":"c6792c441767256030606eb82dca5d5fc360dd9a"},{"fixed":"bfce253f039eb5f58b810af267942a9f59207254"},{"fixed":"18174b166547ef41973cc19feb5ef9cab39a8def"},{"fixed":"801fb950cae7048eb7d83b18857d1ca37b8cd5a4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98290.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98290.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}