9.8critical
tls: fix race between async notify and socket close
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.55% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tls: fix race between async notify and socket close The submitting thread (one which called recvmsg/sendmsg) may exit as soon as the async crypto handler calls complete() so any code past that point risks touching already freed data. Try to avoid the locking and extra flags altogether. Have the main thread hold an extra reference, this way we can depend solely on the atomic ref counter for synchronization. Don't futz with reiniting the completion, either, we are now tightly controlling when completion fires.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0cada33241d9de205522e3858b18e506ca5cce2c before f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7, from 0cada33241d9de205522e3858b18e506ca5cce2c before 7a3ca06d04d589deec81f56229a9a9d62352ce01, from 0cada33241d9de205522e3858b18e506ca5cce2c before 86dc27ee36f558fe223dbdfbfcb6856247356f4a, from 0cada33241d9de205522e3858b18e506ca5cce2c before 6209319b2efdd8524691187ee99c40637558fa33, from 0cada33241d9de205522e3858b18e506ca5cce2c before aec7961916f3f9e88766e2688992da6980f11b8d, cf4cc95a15f599560c7abd89095a7973a4b9cec3, 9b81d43da15e56ed89f083f326561acdcaf549ce, from 5.4.44 before 5.5 and 2 more Not affected: before 5.7, from 5.15.160 up to 5.15.*, from 6.1.79 up to 6.1.*, from 6.6.18 up to 6.6.*, from 6.7.6 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 5.7.0 before 6.1.79, from 6.2.0 before 6.6.18, from 6.7.0 before 6.7.6 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/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: tls: fix race between async notify and socket close The submitting thread (one which called recvmsg/sendmsg) may exit as soon as the async crypto handler calls complete() so any code past that point risks touching already freed data. Try to avoid the locking and extra flags altogether. Have the main thread hold an extra reference, this way we can depend solely on the atomic ref counter for synchronization. Don't futz with reiniting the completion, either, we are now tightly controlling when completion fires.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: tls: corrige la ejecución entre la notificación asíncrona y el cierre del socket. El hilo de envío (uno que llamó recvmsg/sendmsg) puede salir tan pronto como el controlador criptográfico asíncrono llame a complete(), por lo que cualquier código pasado ese punto corre el riesgo de tocar datos ya liberados. Intente evitar por completo el bloqueo y las banderas adicionales. Haga que el hilo principal contenga una referencia adicional, de esta manera podemos depender únicamente del contador de referencia atómica para la sincronización. Tampoco te preocupes por reiniciar la finalización, ahora estamos controlando estrictamente cuándo se activa la finalización.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26583 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-26583 changed 2026-08-04 | Public domain |