CVE-2024-26582 net: tls: fix use-after-free with partial reads and async decrypt

Critical 9.8 Published Updated

A use-after-free in the Linux kernel TLS module allows attackers to cause denial of service or potentially execute code via partial reads and async decrypt.

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

CVE-2024-26582 is a critical use after free 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:

net: tls: fix use-after-free with partial reads and async decrypt

tls_decrypt_sg doesn't take a reference on the pages from clear_skb, so the put_page() in tls_decrypt_done releases them, and we trigger a use-after-free in process_rx_list when we try to read from the partially-read skb.

Weakness: CWE-416

Which versions are affected by CVE-2024-26582?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26582?

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-26582 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-35798, BELL-CVE-2024-26582, DEBIAN-CVE-2024-26582, GHSA-j66f-jc3v-93vp, UBUNTU-CVE-2024-26582.

Is CVE-2024-26582 in your software?

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

Check your SBOMs for free