CVE-2024-36013
Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect()
Mitigation
- Upgrade Linux to 4d7b41c0e43995b0e992b9f8903109275744b658 or later.
Who should check
- Anyone running Linux >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 8629a65a48890769c47ebc9b6e57c02a80a8975e; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < cfe560c7050bfb37b0d2491bbe7cd8b59e77fdc5; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 826af9d2f69567c646ff46d10393d47e30ad23c6; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 4d7b41c0e43995b0e992b9f8903109275744b658
- Anyone running Linux 3.0
Vulnerability facts
- Affected
- Linux >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 8629a65a48890769c47ebc9b6e57c02a80a8975e; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < cfe560c7050bfb37b0d2491bbe7cd8b59e77fdc5; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 826af9d2f69567c646ff46d10393d47e30ad23c6; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 4d7b41c0e43995b0e992b9f8903109275744b658; Linux 3.0
- Fixed in
- Linux 8629a65a48890769c47ebc9b6e57c02a80a8975e, Linux 826af9d2f69567c646ff46d10393d47e30ad23c6, Linux 4d7b41c0e43995b0e992b9f8903109275744b658
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.69% chance of exploitation in 30 days (percentile 48, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect() Extend a critical section to prevent chan from early freeing. Also make the l2cap_connect() return type void. Nothing is using the returned value but it is ugly to return a potentially freed pointer. Making it void will help with backports because earlier kernels did use the return value. Now the compile will break for kernels where this patch is not a complete fix. Call stack summary: [use] l2cap_bredr_sig_cmd l2cap_connect ┌ mutex_lock(&conn->chan_lock); │ chan = pchan->ops->new_connection(pchan); <- alloc chan │ __l2cap_chan_add(conn, chan); │ l2cap_chan_hold(chan); │ list_add(&chan->list, &conn->chan_l); ... (1) └ mutex_unlock(&conn->chan_lock); chan->conf_state ... (4) <- use after free [free] l2cap_conn_del ┌ mutex_lock(&conn->chan_lock); │ foreach chan in conn->chan_l: ... (2) │ l2cap_chan_put(chan); │ l2cap_chan_destroy │ kfree(chan) ... (3) <- chan freed └ mutex_unlock(&conn->chan_lock); ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in l2cap_connect+0xa67/0x11a0 net/bluetooth/l2cap_core.c:4260 Read of size 8 at addr ffff88810bf040a0 by task kworker/u3:1/311
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 8629a65a48890769c47ebc9b6e57c02a80a8975e; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < cfe560c7050bfb37b0d2491bbe7cd8b59e77fdc5; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 826af9d2f69567c646ff46d10393d47e30ad23c6; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 4d7b41c0e43995b0e992b9f8903109275744b658 | — | cvelist |
| Linux | 3.0 | — | 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-36013. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-36013.md Affected: Linux >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 8629a65a48890769c47ebc9b6e57c02a80a8975e; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < cfe560c7050bfb37b0d2491bbe7cd8b59e77fdc5; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 826af9d2f69567c646ff46d10393d47e30ad23c6; >= 73ffa904b78287f6acf8797… Fixed in: Linux 8629a65a48890769c47ebc9b6e57c02a80a8975e, Linux 826af9d2f69567c646ff46d10393d47e30ad23c6, Linux 4d7b41c0e43995b0e992b9f8903109275744b658 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
FAQ
Is CVE-2024-36013 being exploited?
There is no confirmed exploitation: CVE-2024-36013 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-36013?
High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-36013?
Linux >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 8629a65a48890769c47ebc9b6e57c02a80a8975e; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < cfe560c7050bfb37b0d2491bbe7cd8b59e77fdc5; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 826af9d2f69567c646ff46d10393d47e30ad23c6; >= 73ffa904b78287f6acf8797e040150aa26a4af4a, < 4d7b41c0e43995b0e992b9f8903109275744b658; Linux 3.0.
Is there a fix for CVE-2024-36013?
Yes. Fixed in Linux 8629a65a48890769c47ebc9b6e57c02a80a8975e, Linux 826af9d2f69567c646ff46d10393d47e30ad23c6, Linux 4d7b41c0e43995b0e992b9f8903109275744b658. Upgrade Linux to 4d7b41c0e43995b0e992b9f8903109275744b658 or later.
How do I check if I'm affected by CVE-2024-36013?
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.