In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect() Extend a critical… (CVE-2024-36013)
A use-after-free vulnerability in the Linux kernel's Bluetooth L2CAP implementation (l2cap_connect function) has been resolved. The issue involves a race condition where a channel object can be freed while still in use, potentially leading to memory corruption. The vulnerability has a CVSS score of 6.8, indicating moderate severity. The fix extends a critical section to prevent early freeing of the channel and changes the function return type to void to avoid returning a pointer to freed memory.
AI Analysis
Technical Summary
This vulnerability (CVE-2024-36013) in the Linux kernel affects the Bluetooth L2CAP layer, specifically in the l2cap_connect() function. A slab-use-after-free occurs due to improper synchronization around the channel object lifecycle, where the channel can be freed while still referenced, leading to a use-after-free condition. The patch extends the critical section protecting the channel and modifies the function to return void, preventing use of a potentially freed pointer. The issue was detected by KASAN (Kernel Address Sanitizer) and involves a read of freed memory. This vulnerability is classified under CWE-416 (Use After Free).
Potential Impact
Successful exploitation could lead to memory corruption in the kernel Bluetooth stack, potentially causing system instability, crashes, or privilege escalation. The CVSS vector indicates the attack requires local access with low privileges and user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available that extends the critical section in the l2cap_connect() function to prevent early freeing of the channel object and changes the function return type to void to avoid returning pointers to freed memory. Users should apply the official Linux kernel patches that address CVE-2024-36013. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the latest patch and backport information.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect() Extend a critical… (CVE-2024-36013)
Description
A use-after-free vulnerability in the Linux kernel's Bluetooth L2CAP implementation (l2cap_connect function) has been resolved. The issue involves a race condition where a channel object can be freed while still in use, potentially leading to memory corruption. The vulnerability has a CVSS score of 6.8, indicating moderate severity. The fix extends a critical section to prevent early freeing of the channel and changes the function return type to void to avoid returning a pointer to freed memory.
CVSS v3.1
Score 6.8medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2024-36013) in the Linux kernel affects the Bluetooth L2CAP layer, specifically in the l2cap_connect() function. A slab-use-after-free occurs due to improper synchronization around the channel object lifecycle, where the channel can be freed while still referenced, leading to a use-after-free condition. The patch extends the critical section protecting the channel and modifies the function to return void, preventing use of a potentially freed pointer. The issue was detected by KASAN (Kernel Address Sanitizer) and involves a read of freed memory. This vulnerability is classified under CWE-416 (Use After Free).
Potential Impact
Successful exploitation could lead to memory corruption in the kernel Bluetooth stack, potentially causing system instability, crashes, or privilege escalation. The CVSS vector indicates the attack requires local access with low privileges and user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available that extends the critical section in the l2cap_connect() function to prevent early freeing of the channel object and changes the function return type to void to avoid returning pointers to freed memory. Users should apply the official Linux kernel patches that address CVE-2024-36013. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the latest patch and backport information.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f835-w392-m6qf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-36013"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a71feebbf8831d539ff12c2
Added to database: 08/04/2026, 15:02:03 UTC
Last enriched: 08/04/2026, 15:17:06 UTC
Last updated: 08/23/2026, 22:52:02 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.