CVE-2024-58009
Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= f6ad641646b67f29c7578dcd6c25813c7dcbf51e, < a9a7672fc1a0fe18502493936ccb06413ab89ea6; >= daa13175a6dea312a76099066cb4cbd4fc959a84, < 8e605f580a97530e5a3583beea458a3fa4cbefbd; >= a8677028dd5123e5e525b8195483994d87123de4, < cf601a24120c674cd7c907ea695f92617af6abd0; >= bb2f2342a6ddf7c04f9aefbbfe86104cd138e629, < 297ce7f544aa675b0d136d788cad0710cdfb0785; >= 8ad09ddc63ace3950ac43db6fbfe25b40f589dd6, < 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22; >= 61686abc2f3c2c67822aa23ce6f160467ec83d35, < 691218a50c3139f7f57ffa79fb89d932eda9571e; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 49c0d55d59662430f1829ae85b969619573d0fa1; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1; >= 5.4.287, < 5.4.291; >= 5.10.231, < 5.10.235; …
- Anyone running Linux 6.13
Vulnerability facts
- Affected
- Linux >= f6ad641646b67f29c7578dcd6c25813c7dcbf51e, < a9a7672fc1a0fe18502493936ccb06413ab89ea6; >= daa13175a6dea312a76099066cb4cbd4fc959a84, < 8e605f580a97530e5a3583beea458a3fa4cbefbd; >= a8677028dd5123e5e525b8195483994d87123de4, < cf601a24120c674cd7c907ea695f92617af6abd0; >= bb2f2342a6ddf7c04f9aefbbfe86104cd138e629, < 297ce7f544aa675b0d136d788cad0710cdfb0785; >= 8ad09ddc63ace3950ac43db6fbfe25b40f589dd6, < 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22; >= 61686abc2f3c2c67822aa23ce6f160467ec83d35, < 691218a50c3139f7f57ffa79fb89d932eda9571e; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 49c0d55d59662430f1829ae85b969619573d0fa1; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1; >= 5.4.287, < 5.4.291; >= 5.10.231, < 5.10.235; …; Linux 6.13
- Fixed in
- Linux 8e605f580a97530e5a3583beea458a3fa4cbefbd, Linux 297ce7f544aa675b0d136d788cad0710cdfb0785, Linux 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22, Linux 691218a50c3139f7f57ffa79fb89d932eda9571e, Linux 49c0d55d59662430f1829ae85b969619573d0fa1, Linux 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1, Linux 5.4.291, Linux 5.10.235
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc A NULL sock pointer is passed into l2cap_sock_alloc() when it is called from l2cap_sock_new_connection_cb() and the error handling paths should also be aware of it. Seemingly a more elegant solution would be to swap bt_sock_alloc() and l2cap_chan_create() calls since they are not interdependent to that moment but then l2cap_chan_create() adds the soon to be deallocated and still dummy-initialized channel to the global list accessible by many L2CAP paths. The channel would be removed from the list in short period of time but be a bit more straight-forward here and just check for NULL instead of changing the order of function calls. Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f6ad641646b67f29c7578dcd6c25813c7dcbf51e, < a9a7672fc1a0fe18502493936ccb06413ab89ea6; >= daa13175a6dea312a76099066cb4cbd4fc959a84, < 8e605f580a97530e5a3583beea458a3fa4cbefbd; >= a8677028dd5123e5e525b8195483994d87123de4, < cf601a24120c674cd7c907ea695f92617af6abd0; >= bb2f2342a6ddf7c04f9aefbbfe86104cd138e629, < 297ce7f544aa675b0d136d788cad0710cdfb0785; >= 8ad09ddc63ace3950ac43db6fbfe25b40f589dd6, < 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22; >= 61686abc2f3c2c67822aa23ce6f160467ec83d35, < 691218a50c3139f7f57ffa79fb89d932eda9571e; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 49c0d55d59662430f1829ae85b969619573d0fa1; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1; >= 5.4.287, < 5.4.291; >= 5.10.231, < 5.10.235; … | — | cvelist |
| Linux | 6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-58009. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-58009.md Affected: Linux >= f6ad641646b67f29c7578dcd6c25813c7dcbf51e, < a9a7672fc1a0fe18502493936ccb06413ab89ea6; >= daa13175a6dea312a76099066cb4cbd4fc959a84, < 8e605f580a97530e5a3583beea458a3fa4cbefbd; >= a8677028dd5123e5e525b8195483994d87123de4, < cf601a24120c674cd7c907ea695f92617af6abd0; >= bb2f2342a6ddf7c04f9aefb… Fixed in: Linux 8e605f580a97530e5a3583beea458a3fa4cbefbd, Linux 297ce7f544aa675b0d136d788cad0710cdfb0785, Linux 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22, Linux 691218a50c3139f7f57ffa79fb89d932eda9571e, Linux 49c0d55d59662430f1829ae85b969619573d0fa1, Linux 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1, Linux 5.4.2… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/a9a7672fc1a0fe18502493936ccb06413ab89ea6
- https://git.kernel.org/stable/c/8e605f580a97530e5a3583beea458a3fa4cbefbd
- https://git.kernel.org/stable/c/cf601a24120c674cd7c907ea695f92617af6abd0
- https://git.kernel.org/stable/c/297ce7f544aa675b0d136d788cad0710cdfb0785
- https://git.kernel.org/stable/c/245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22
- https://git.kernel.org/stable/c/691218a50c3139f7f57ffa79fb89d932eda9571e
- https://git.kernel.org/stable/c/49c0d55d59662430f1829ae85b969619573d0fa1
- https://git.kernel.org/stable/c/5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1
FAQ
Is CVE-2024-58009 being exploited?
There is no confirmed exploitation: CVE-2024-58009 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-58009?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-58009?
Linux >= f6ad641646b67f29c7578dcd6c25813c7dcbf51e, < a9a7672fc1a0fe18502493936ccb06413ab89ea6; >= daa13175a6dea312a76099066cb4cbd4fc959a84, < 8e605f580a97530e5a3583beea458a3fa4cbefbd; >= a8677028dd5123e5e525b8195483994d87123de4, < cf601a24120c674cd7c907ea695f92617af6abd0; >= bb2f2342a6ddf7c04f9aefbbfe86104cd138e629, < 297ce7f544aa675b0d136d788cad0710cdfb0785; >= 8ad09ddc63ace3950ac43db6fbfe25b40f589dd6, < 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22; >= 61686abc2f3c2c67822aa23ce6f160467ec83d35, < 691218a50c3139f7f57ffa79fb89d932eda9571e; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 49c0d55d59662430f1829ae85b969619573d0fa1; >= 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, < 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1; >= 5.4.287, < 5.4.291; >= 5.10.231, < 5.10.235; …; Linux 6.13.
Is there a fix for CVE-2024-58009?
Yes. Fixed in Linux 8e605f580a97530e5a3583beea458a3fa4cbefbd, Linux 297ce7f544aa675b0d136d788cad0710cdfb0785, Linux 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22, Linux 691218a50c3139f7f57ffa79fb89d932eda9571e, Linux 49c0d55d59662430f1829ae85b969619573d0fa1, Linux 5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1, Linux 5.4.291, Linux 5.10.235. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-58009?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.