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

Critical 9.8 Published Updated

A race condition in the Linux kernel TLS implementation allows use-after-free, potentially leading to denial of service or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26583?

CVE-2024-26583 is a critical vulnerability in Linux kernel, published on 21 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-362

Which versions are affected by CVE-2024-26583?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26583?

Apply the vendor's patch.

Is CVE-2024-26583 being exploited?

There is no known exploitation of CVE-2024-26583 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-35474, AZL-35799, AZL-35812, BELL-CVE-2024-26583, DEBIAN-CVE-2024-26583, GHSA-j737-8h5g-42g9 and 2 more.

Is CVE-2024-26583 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free