CVE-2024-58240 tls: separate no-async decryption request handling from async

Critical 9.8 Published Updated

A use-after-free vulnerability in the Linux kernel's TLS implementation could allow attackers to execute arbitrary code or cause a system crash.

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-58240?

CVE-2024-58240 is a critical use after free vulnerability in Debian Debian Linux, published on 28 Aug 2025. 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: separate no-async decryption request handling from async

If we're not doing async, the handling is much simpler. There's no reference counting, we just need to wait for the completion to wake us up and return its result.

We should preferably also use a separate crypto_wait. I'm not seeing a UAF as I did in the past, I think aec7961916f3 ("tls: fix race between async notify and socket close") took care of it.

This will make the next fix easier.

Weakness: CWE-416

Which versions are affected by CVE-2024-58240?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-58240?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-58240 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-73914, BELL-CVE-2024-58240, DEBIAN-CVE-2024-58240, GHSA-fpx7-665w-c5c9, ROOT-OS-DEBIAN-11-CVE-2024-58240, ROOT-OS-DEBIAN-12-CVE-2024-58240 and 1 more.

Is CVE-2024-58240 in your software?

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

Check your SBOMs for free