CVE-2024-26583

tls: fix race between async notify and socket close

State
Published
Severity
9.8 Critical
Published
Feb 21, 2024
Updated
Aug 5, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0cada33241d9de205522e3858b18e506ca5cce2c to before f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7Affected
  • 0cada33241d9de205522e3858b18e506ca5cce2c to before 7a3ca06d04d589deec81f56229a9a9d62352ce01Affected
  • 0cada33241d9de205522e3858b18e506ca5cce2c to before 86dc27ee36f558fe223dbdfbfcb6856247356f4aAffected
  • 0cada33241d9de205522e3858b18e506ca5cce2c to before 6209319b2efdd8524691187ee99c40637558fa33Affected
  • 0cada33241d9de205522e3858b18e506ca5cce2c to before aec7961916f3f9e88766e2688992da6980f11b8dAffected
  • cf4cc95a15f599560c7abd89095a7973a4b9cec3Affected
  • 9b81d43da15e56ed89f083f326561acdcaf549ceAffected
  • 5.4.44 to before 5.5Affected
  • 5.6.16 to before 5.7Affected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 5.15.160 through 5.15.*Not affected
  • 6.1.79 through 6.1.*Not affected
  • 6.6.18 through 6.6.*Not affected
  • 6.7.6 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.