{"id":"CVE-2026-98290","aliases":["CVE-2026-98290"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-06T08:45:50.299Z","modified":"2026-10-19T10:18:30.680Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"4aafb47301a799d3e01230d6568c4e93524e1523","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"c741977e413f5b49d306700820fb55ccb8269f5a","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"c6792c441767256030606eb82dca5d5fc360dd9a","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"bfce253f039eb5f58b810af267942a9f59207254","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"18174b166547ef41973cc19feb5ef9cab39a8def","status":"affected"},{"type":"git","introduced":"b7ce436a5d798bc59e71797952566608a4b4626b","fixed":"801fb950cae7048eb7d83b18857d1ca37b8cd5a4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4aafb47301a799d3e01230d6568c4e93524e1523","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c741977e413f5b49d306700820fb55ccb8269f5a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6792c441767256030606eb82dca5d5fc360dd9a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfce253f039eb5f58b810af267942a9f59207254","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18174b166547ef41973cc19feb5ef9cab39a8def","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/801fb950cae7048eb7d83b18857d1ca37b8cd5a4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98290","url":"https://www.cve.org/CVERecord?id=CVE-2026-98290","licence":"CVE Terms of Use","modified":"2026-10-19T09:17:01.498Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98290","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98290","licence":"Public domain","modified":"2026-10-19T10:18:30.680Z"}],"updatedAt":"2026-11-25T22:59:42.318Z","epss":{"score":0.00236,"percentile":0.15696,"date":"2026-12-01T12:00:22.000Z"}}