CVE Catalog

CVE-2024-41062

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.31%

24th percentile - higher than 24% of all known CVEs

Summary

In the Linux kernel Bluetooth L2CAP layer, a race exists between socket close (sock_close) and hci_rx_work, which accesses the released socket without lock protection. This leads to a use-after-free bug.

Risk Assessment

It may result in a kernel crash or potential code execution, especially under heavy Bluetooth traffic with concurrent connection closures.

Recommendation

Update the Linux kernel to a version with the fix that adds a channel mutex in the socket receive callback and sets channel data to NULL after socket release.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: bluetooth/l2cap: sync sock recv cb and release The problem occurs between the system call to close the sock and hci_rx_work, where the former releases the sock and the latter accesses it without lock protection. CPU0 CPU1 ---- ---- sock_close hci_rx_work l2cap_sock_release hci_acldata_packet l2cap_sock_kill l2cap_recv_frame sk_free l2cap_conless_channel l2cap_sock_recv_cb If hci_rx_work processes the data that needs to be received before the sock is closed, then everything is normal; Otherwise, the work thread may access the released sock when receiving data. Add a chan mutex in the rx callback of the sock to achieve synchronization between the sock release and recv cb. Sock is dead, so set chan data to NULL, avoid others use invalid sock pointer.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS