CVE-2024-41062
bluetooth/l2cap: sync sock recv cb and release
Check your servers for CVE-2024-41062
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-41062 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bluetooth/l2cap: sync sock recv cb and release
The problem occurs between the system call to close the sock and hci_rx_work, where the former releases the sock and the latter accesses it without lock protection.
CPU0 CPU1 ---- ---- sock_close hci_rx_work l2cap_sock_release hci_acldata_packet l2cap_sock_kill l2cap_recv_frame sk_free l2cap_conless_channel l2cap_sock_recv_cb
If hci_rx_work processes the data that needs to be received before the sock is closed, then everything is normal; Otherwise, the work thread may access the released sock when receiving data.
Add a chan mutex in the rx callback of the sock to achieve synchronization between the sock release and recv cb.
Sock is dead, so set chan data to NULL, avoid others use invalid sock pointer.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before 59a3ccd749b2550392ee531b4d727022eae4c89f affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before 9c0b7d61cf3c00f87f2529b5b8b785f0f65089aa affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before 605572e64cd9cebb05ed609d96cff05b50d18cdf affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before b803f30ea23e0968b6c8285c42adf0d862ab2bf6 affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before 3b732449b78183d17178db40be3a4401cf3cd629 affected from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa, before 89e856e124f9ae548572c56b1b70c2255705f8fe
Other versions: unaffected
|
| Linux |
affected 3.4 unaffected before 3.4 unaffected from 5.10.271 up to and including 5.10.* unaffected from 5.15.222 up to and including 5.15.* unaffected from 6.1.101 up to and including 6.1.* unaffected from 6.6.42 up to and including 6.6.* unaffected from 6.9.11 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-41062 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-41062
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-41062
trivy image --scanners vuln IMAGE | grep CVE-2024-41062
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/59a3ccd749b2550392ee531b4d727022eae4c89f git.kernel.org
- https://git.kernel.org/stable/c/9c0b7d61cf3c00f87f2529b5b8b785f0f65089aa git.kernel.org
- https://git.kernel.org/stable/c/605572e64cd9cebb05ed609d96cff05b50d18cdf git.kernel.org
- https://git.kernel.org/stable/c/b803f30ea23e0968b6c8285c42adf0d862ab2bf6 git.kernel.org
- https://git.kernel.org/stable/c/3b732449b78183d17178db40be3a4401cf3cd629 git.kernel.org
- https://git.kernel.org/stable/c/89e856e124f9ae548572c56b1b70c2255705f8fe git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-41062 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse