tls: fix race between async notify and socket close (Linux Linux)

CVE-2024-26583
CRITICAL 9.8

At a glance

Source
NVD
EPSS
EPSS 0.55 % · percentile 46 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0cada33241d9de205522e3858b18e506ca5cce2c < f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7 ; affected 0cada33241d9de205522e3858b18e506ca5cce2c < 7a3ca06d04d589deec81f56229a9a9d62352ce01 ; affected 0cada33241d9de205522e3858b18e506ca5cce2c < 86dc27ee36f558fe223dbdfbfcb6856247356f4a ; affected 0cada33241d9de205522e3858b18e506ca5cce2c < 6209319b2efdd8524691187ee99c40637558fa33 ; affected 0cada33241d9de205522e3858b18e506ca5cce2c < aec7961916f3f9e88766e2688992da6980f11b8d ; affected cf4cc95a15f599560c7abd89095a7973a4b9cec3
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 5.15.160 ≤ 5.15.* ; unaffected 6.1.79 ≤ 6.1.* ; unaffected 6.6.18 ≤ 6.6.* ; unaffected 6.7.6 ≤ 6.7.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD