# CVE-2024-26583: tls: fix race between async notify and socket close

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-02-21T14:59:11.845Z
- Modified: 2026-08-05T11:26:02.205Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; from 5.6.16 before 5.7; 5.7 (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 *)
- 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

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7>
- <https://git.kernel.org/stable/c/7a3ca06d04d589deec81f56229a9a9d62352ce01> (patch)
- <https://git.kernel.org/stable/c/86dc27ee36f558fe223dbdfbfcb6856247356f4a> (patch)
- <https://git.kernel.org/stable/c/6209319b2efdd8524691187ee99c40637558fa33> (patch)
- <https://git.kernel.org/stable/c/aec7961916f3f9e88766e2688992da6980f11b8d> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EZOU3745CWCDZ7EMKMXB2OEEIB5Q3IWM/>

## Sources

- CVE List: [CVE-2024-26583](https://www.cve.org/CVERecord?id=CVE-2024-26583), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26583](https://nvd.nist.gov/vuln/detail/CVE-2024-26583), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26583 · Whole record: https://cve.day/CVE-2024-26583.json · Rebuilt by cve.day 2026-11-25T22:58:36.959Z
