Paper/Archive/CVE-2024-26583

CVE-2024-26583

Linux Linux — tls: fix race between async notify and socket close

Description · from the CVE record

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

ProductAffectedFixed inSource
Linux0cada33241d9de205522e3858b18e506ca5cce2c – < f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7CNA
Linux0cada33241d9de205522e3858b18e506ca5cce2c – < 7a3ca06d04d589deec81f56229a9a9d62352ce017a3ca06d04d589deec81f56229a9a9d62352ce01CNA
Linux0cada33241d9de205522e3858b18e506ca5cce2c – < 86dc27ee36f558fe223dbdfbfcb6856247356f4a86dc27ee36f558fe223dbdfbfcb6856247356f4aCNA
Linux0cada33241d9de205522e3858b18e506ca5cce2c – < 6209319b2efdd8524691187ee99c40637558fa336209319b2efdd8524691187ee99c40637558fa33CNA
Linux0cada33241d9de205522e3858b18e506ca5cce2c – < aec7961916f3f9e88766e2688992da6980f11b8daec7961916f3f9e88766e2688992da6980f11b8dCNA
Linuxcf4cc95a15f599560c7abd89095a7973a4b9cec3–CNA
Linux9b81d43da15e56ed89f083f326561acdcaf549ce–CNA
Linux5.4.44 – < 5.55.5CNA
Linux5.6.16 – < 5.75.7CNA
Linux5.75.15.160CNA

Scores by source

Linux (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: partial

References

refgit.kernel.org/stable/c/f17d21ea73918ace8afb9c2d8e734dbf71c2c9d7refgit.kernel.org/stable/c/7a3ca06d04d589deec81f56229a9a9d62352ce01refgit.kernel.org/stable/c/86dc27ee36f558fe223dbdfbfcb6856247356f4arefgit.kernel.org/stable/c/6209319b2efdd8524691187ee99c40637558fa33refgit.kernel.org/stable/c/aec7961916f3f9e88766e2688992da6980f11b8dreflists.fedoraproject.org/archives/list/[email protected]/message/EZOU3745CWCDZ7EMKMXB2OEEIB5Q3IWM