CVE-2024-41062
JSON

8.8high

bluetooth/l2cap: sync sock recv cb and release

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before 59a3ccd749b2550392ee531b4d727022eae4c89f, from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before 9c0b7d61cf3c00f87f2529b5b8b785f0f65089aa, from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before 605572e64cd9cebb05ed609d96cff05b50d18cdf, from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before b803f30ea23e0968b6c8285c42adf0d862ab2bf6, from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before 3b732449b78183d17178db40be3a4401cf3cd629, from 5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa before 89e856e124f9ae548572c56b1b70c2255705f8fe, 3.4
Not affected: before 3.4, from 5.10.271 up to 5.10.*, from 5.15.222 up to 5.15.*, from 6.1.101 up to 6.1.*, from 6.6.42 up to 6.6.*, from 6.9.11 up to 6.9.*
CVE List
linux linux_kernelbefore 6.1.101, from 6.2 before 6.6.42, from 6.7 before 6.9.11, 6.10NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: bluetooth/l2cap: sync sock recv cb and release El problema ocurre entre la llamada al sistema para cerrar el calcetín y hci_rx_work, donde el primero libera el calcetín y el segundo accede a él sin protección de bloqueo. . 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 Si hci_rx_work procesa los datos que deben recibirse antes de cerrar el sock, entonces todo es normal; De lo contrario, el hilo de trabajo puede acceder al sock liberado al recibir datos. Agregue un mutex chan en la devolución de llamada rx del sock para lograr la sincronización entre la liberación del sock y recv cb. Sock está muerto, así que configure los datos de chan en NULL, evite que otros usen un puntero de sock no válido.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-41062 changed 2026-10-03CVE Terms of Use
NVDCVE-2024-41062 changed 2026-10-03Public domain