CVE-2024-56654
JSON

7.8high

Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating The usage of rcu_read_(un)lock while inside list_for_each_entry_rcu is not safe since for the most part entries fetched this way shall be treated as rcu_dereference: Note that the value returned by rcu_dereference() is valid only within the enclosing RCU read-side critical section [1]_. For example, the following is **not** legal:: rcu_read_lock(); p = rcu_dereference(head.next); rcu_read_unlock(); x = p->address; /* BUG!!! */ rcu_read_lock(); y = p->data; /* BUG!!! */ rcu_read_unlock();

Affected

Product or packageVersionsReported by
Linux Linuxfrom a0bfde167b506423111ddb8cd71930497a40fc54 before 0108132d7d76d884e443d18b4f067cdf2811911b, from a0bfde167b506423111ddb8cd71930497a40fc54 before f9ecc90b5d501b3a5a62d0685d5104f934bb0104, from a0bfde167b506423111ddb8cd71930497a40fc54 before 581dd2dc168fe0ed2a7a5534a724f0d3751c93ae, b475c1109251e30ec21fb574d72a1c71a4ab0039, 2ccde10127447c1a5caad8469fede945bdb62fdf, from 6.4.16 before 6.5, from 6.5.3 before 6.6, 6.6
Not affected: before 6.6, from 6.6.67 up to 6.6.*, from 6.12.6 up to 6.12.*, from 6.13 up to *
CVE List
linux linux_kernelfrom 6.4.16 before 6.5, from 6.5.3 before 6.6.67, from 6.7 before 6.12.6, 6.13NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

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: hci_event: Fix using rcu_read_(un)lock while iterating The usage of rcu_read_(un)lock while inside list_for_each_entry_rcu is not safe since for the most part entries fetched this way shall be treated as rcu_dereference: Note that the value returned by rcu_dereference() is valid only within the enclosing RCU read-side critical section [1]_. For example, the following is **not** legal:: rcu_read_lock(); p = rcu_dereference(head.next); rcu_read_unlock(); x = p->address; /* BUG!!! */ rcu_read_lock(); y = p->data; /* BUG!!! */ rcu_read_unlock();

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Bluetooth: hci_event: Se solucionó el uso de rcu_read_(un)lock durante la iteración El uso de rcu_read_(un)lock mientras se está dentro de list_for_each_entry_rcu no es seguro ya que en la mayor parte de los casos las entradas obtenidas de esta manera se tratarán como rcu_dereference: Tenga en cuenta que el valor devuelto por rcu_dereference() solo es válido dentro de la sección crítica del lado de lectura de RCU [1]_. Por ejemplo, lo siguiente **no** es legal:: rcu_read_lock(); p = rcu_dereference(head.next); rcu_read_unlock(); x = p->address; /* ¡ERROR! */ rcu_read_lock(); y = p->data; /* ¡ERROR! */ rcu_read_unlock();

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56654 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-56654 changed 2026-08-04Public domain