CVE-2024-58009
Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc
Reported by linux · Published February 27, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | cf601a24120c674cd7c907ea695f92617af6abd0, a9a7672fc1a0fe18502493936ccb06413ab89ea6, 8e605f580a97530e5a3583beea458a3fa4cbefbd, 6.12.14, 6.6.78, 6.1.129, 5.15.179, 5.10.235, 5.4.291, 297ce7f544aa675b0d136d788cad0710cdfb0785, 245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f6ad641646b67f29c7578dcd6c25813c7dcbf51e, daa13175a6dea312a76099066cb4cbd4fc959a84, a8677028dd5123e5e525b8195483994d87123de4 |
| Linux | Linux | 6.13, 0, 5.4.291 |
| Linux | Linux | 6.12.5, *, * |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| linux | linux_kernel | 5.10.231, 5.15.174, 6.1.120 |
Timeline
- Feb 27, 2025 CVE Published
- Feb 28, 2025 Coalition ESS Score (13 in total, the first dated here)
- Mar 14, 2025 EPSS Score (29 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 29, 2025 Security Advisory (365 in total, the first dated here)
- Dec 29, 2025 CVE Updated
- Nov 15, 2026 Distribution Patch (320 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-58009
vulnetix vdb fixes CVE-2024-58009
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-58009/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart