Linux · Linux Kernel · CVE-2024-36013
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
The issue is related to a slab-use-after-free vulnerability in the `l2cap connect()` function. This vulnerability can be exploited due to a race condition, allowing an attacker to potentially impact the confidentiality, integrity, and availability of protected information. The vulnerability occurs when the `chan` variable is freed early, and then its memory is accessed again, leading to a use-after-free condition. The `l2cap connect()` function is used in the Bluetooth L2CAP protocol implementation.
Technical details about exploitation include:
- The `l2cap bredr sig cmd` function calls `l2cap connect()`, which allocates memory for the `chan` variable.
- The `l2cap conn del` function frees the `chan` variable, but due to the race condition, the memory can be accessed after it has been freed.
- The vulnerability can be triggered by exploiting the race condition between the allocation and deallocation of the `chan` variable.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.