CVE-2024-56654

Source
https://cve.org/CVERecord?id=CVE-2024-56654
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56654.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56654
Downstream
Related
Published
2024-12-27T15:06:18.224Z
Modified
2026-03-11T07:50:03.154548Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hcievent: Fix using rcuread_(un)lock while iterating

The usage of rcuread(un)lock while inside listforeachentryrcu 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();
Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56654.json"
}
References

Affected packages

Git / 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
a0bfde167b506423111ddb8cd71930497a40fc54
Fixed
0108132d7d76d884e443d18b4f067cdf2811911b
Fixed
f9ecc90b5d501b3a5a62d0685d5104f934bb0104
Fixed
581dd2dc168fe0ed2a7a5534a724f0d3751c93ae
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
b475c1109251e30ec21fb574d72a1c71a4ab0039
Last affected
2ccde10127447c1a5caad8469fede945bdb62fdf

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56654.json"