# CVE-2024-58009: Bluetooth: L2CAP: handle NULL sock pointer in l2cap\_sock\_alloc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-27T02:12:04.637Z
- **Modified:** 2026-10-15T02:17:17.663Z

## 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

## 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

- 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)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/a9a7672fc1a0fe18502493936ccb06413ab89ea6>
- patch: <https://git.kernel.org/stable/c/8e605f580a97530e5a3583beea458a3fa4cbefbd>
- patch: <https://git.kernel.org/stable/c/cf601a24120c674cd7c907ea695f92617af6abd0>
- patch: <https://git.kernel.org/stable/c/297ce7f544aa675b0d136d788cad0710cdfb0785>
- patch: <https://git.kernel.org/stable/c/245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22>
- patch: <https://git.kernel.org/stable/c/691218a50c3139f7f57ffa79fb89d932eda9571e>
- patch: <https://git.kernel.org/stable/c/49c0d55d59662430f1829ae85b969619573d0fa1>
- patch: <https://git.kernel.org/stable/c/5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58009>

HTML: <https://flawdb.com/CVE-2024-58009> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58009>
