Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup (Linux Linux)

CVE-2026-98290
HIGH 7.5

En bref

Source
NVD
EPSS
EPSS 0.24 % · centile 15 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup rfcomm_sock_cleanup_listen() closes unaccepted child sockets through rfcomm_sock_close(), which takes the child socket lock before rfcomm_dlc_close() acquires rfcomm_mutex. The RFCOMM worker takes these locks in reverse order while handling connections and DLC state changes, so lockdep reports a possible deadlock. Close dequeued children without taking their socket lock. The accept queue owns a reference to each child, and bt_accept_dequeue() locks the child while unlinking it and clearing its parent pointer. Dropping the child lock makes it important to prevent a concurrent rfcomm_connect_ind() from enqueueing a new child after cleanup observes an empty queue. Set a listening socket to BT_CLOSED while its lock is still held, before dropping the lock and draining the queue. The state check in rfcomm_connect_ind() then rejects new children once cleanup starts.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.5CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected b7ce436a5d798bc59e71797952566608a4b4626b < eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c ; affected b7ce436a5d798bc59e71797952566608a4b4626b < 4aafb47301a799d3e01230d6568c4e93524e1523 ; affected b7ce436a5d798bc59e71797952566608a4b4626b < c741977e413f5b49d306700820fb55ccb8269f5a ; affected b7ce436a5d798bc59e71797952566608a4b4626b < c6792c441767256030606eb82dca5d5fc360dd9a ; affected b7ce436a5d798bc59e71797952566608a4b4626b < bfce253f039eb5f58b810af267942a9f59207254 ; affected b7ce436a5d798bc59e71797952566608a4b4626b < 18174b166547ef41973cc19feb5ef9cab39a8def
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 5.15.222 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.* ; unaffected 6.12.112 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD