CVE-2024-58009: Linux kernel · Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.4.0-1146.156~18.04.1 : update Linux kernel when convenient.
Data as of 24 Nov 2026, 19:43 UTC
- Patch
- Available – fixed in 5.4.0-1146.156~18.04.1, 5.4.0-1151.158~18.04.1, 5.4.0-1149.158~18.04.1 +17
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7516-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7518-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-6 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7539-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-7 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-58009 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-58009 (opens in a new tab)
- git.kernel.org/linus/5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1 (opens in a new tab)
- git.kernel.org/stable/c/245d48c1ba3e7a1779c2f4cbc6f581ddc8a78e22 (opens in a new tab)
- git.kernel.org/stable/c/297ce7f544aa675b0d136d788cad0710cdfb0785 (opens in a new tab)
- git.kernel.org/stable/c/49c0d55d59662430f1829ae85b969619573d0fa1 (opens in a new tab)
- git.kernel.org/stable/c/5f397409f8ee5bc82901eeaf799e1cbc4f8edcf1 (opens in a new tab)
- git.kernel.org/stable/c/691218a50c3139f7f57ffa79fb89d932eda9571e (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7518-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-6 (opens in a new tab)
- ubuntu.com/security/notices/USN-7517-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7539-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7516-7 (opens in a new tab)