CVE-2024-50044
JSON

3.3low

Bluetooth: RFCOMM: FIX possible deadlock in rfcomm_sk_state_change

Severity
3.3low CVSS:3.1 by NVD
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: FIX possible deadlock in rfcomm_sk_state_change rfcomm_sk_state_change attempts to use sock_lock so it must never be called with it locked but rfcomm_sock_ioctl always attempt to lock it causing the following trace: ====================================================== WARNING: possible circular locking dependency detected 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted ------------------------------------------------------ syz-executor386/5093 is trying to acquire lock: ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1671 [inline] ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sk_state_change+0x5b/0x310 net/bluetooth/rfcomm/sock.c:73 but task is already holding lock: ffff88807badfd28 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0x226/0x6a0 net/bluetooth/rfcomm/core.c:491

Affected

Product or packageVersionsReported by
Linux Linuxfrom 3241ad820dbb172021e0268b5611031991431626 before b77b3fb12fd483cae7c28648903b1d8a6b275f01, from 3241ad820dbb172021e0268b5611031991431626 before 869c6ee62ab8f01bf2419e45326642be5c9b670a, from 3241ad820dbb172021e0268b5611031991431626 before ef44274dae9b0a90d1a97ce8b242a3b8243a7745, from 3241ad820dbb172021e0268b5611031991431626 before 496b2ab0fd10f205e08909a125485fdc98843dbe, from 3241ad820dbb172021e0268b5611031991431626 before ced98072d3511b232ae1d3347945f35f30c0e303, from 3241ad820dbb172021e0268b5611031991431626 before 38b2d5a57d125e1c17661b8308c0240c4a43b534, from 3241ad820dbb172021e0268b5611031991431626 before 4cb9807c9b53bf1e5560420d26f319f528b50268, from 3241ad820dbb172021e0268b5611031991431626 before 08d1914293dae38350b8088980e59fbc699a72fe and 1 more
Not affected: before 2.6.27, from 4.19.323 up to 4.19.*, from 5.4.285 up to 5.4.*, from 5.10.227 up to 5.10.*, from 5.15.168 up to 5.15.*, from 6.1.113 up to 6.1.*
CVE List
linux linux_kernelfrom 2.6.27 before 5.10.227, from 5.11 before 5.15.168, from 5.16 before 6.1.113, from 6.2 before 6.6.57, from 6.7 before 6.11.4, 6.12NVD

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: FIX possible deadlock in rfcomm_sk_state_change rfcomm_sk_state_change attempts to use sock_lock so it must never be called with it locked but rfcomm_sock_ioctl always attempt to lock it causing the following trace: ====================================================== WARNING: possible circular locking dependency detected 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted ------------------------------------------------------ syz-executor386/5093 is trying to acquire lock: ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1671 [inline] ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sk_state_change+0x5b/0x310 net/bluetooth/rfcomm/sock.c:73 but task is already holding lock: ffff88807badfd28 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0x226/0x6a0 net/bluetooth/rfcomm/core.c:491

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Bluetooth: RFCOMM: CORREGIR posible bloqueo en rfcomm_sk_state_change rfcomm_sk_state_change intenta usar sock_lock, por lo que nunca se debe llamar con él bloqueado, pero rfcomm_sock_ioctl siempre intenta bloquearlo, lo que provoca el siguiente rastro: ======================================================= ADVERTENCIA: se ha detectado una posible dependencia de bloqueo circular 6.8.0-syzkaller-08951-gfe46a7dd189e #0 No contaminado ------------------------------------------------------ syz-executor386/5093 está intentando adquirir el bloqueo: ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, en: lock_sock include/net/sock.h:1671 [en línea] ffff88807c396258 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, en: rfcomm_sk_state_change+0x5b/0x310 net/bluetooth/rfcomm/sock.c:73 pero la tarea ya tiene el bloqueo: ffff88807badfd28 (&d->lock){+.+.}-{3:3}, en: __rfcomm_dlc_close+0x226/0x6a0 net/bluetooth/rfcomm/core.c:491

References

https://git.kernel.org/stable/c/b77b3fb12fd483cae7c28648903b1d8a6b275f01
https://git.kernel.org/stable/c/869c6ee62ab8f01bf2419e45326642be5c9b670a
https://git.kernel.org/stable/c/ef44274dae9b0a90d1a97ce8b242a3b8243a7745patch
https://git.kernel.org/stable/c/496b2ab0fd10f205e08909a125485fdc98843dbepatch
https://git.kernel.org/stable/c/ced98072d3511b232ae1d3347945f35f30c0e303patch
https://git.kernel.org/stable/c/38b2d5a57d125e1c17661b8308c0240c4a43b534patch
https://git.kernel.org/stable/c/4cb9807c9b53bf1e5560420d26f319f528b50268patch
https://git.kernel.org/stable/c/08d1914293dae38350b8088980e59fbc699a72fepatch
https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-355557.html

Sources

SourceRecordLicence
CVE ListCVE-2024-50044 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-50044 changed 2026-10-15Public domain