Skip to content
Memory corruption Write-up Advanced

Linux Kernel Vulnerability CVE-2024–26582: How a kTLS Flaw Gran

A use-after-free in the Linux kernel's kTLS decryption path allows a local unprivileged attacker to free a page still in use, then reclaim it with controlled data to leak kernel pointers and overwrite process credentials, gaining root.

synthex Follow

Published on synthex.medium.com

Cybersecurity researchers have recently unveiled the weaponization mechanics of CVE-2024–26582, a high-severity vulnerability (CVSS 7.8) hidden deep within the Linux kernel’s native Transport Layer Security (net/tls) parsing component. What was initially categorized as a standard Denial of Service (DoS) bug has now…

Synthex, on synthex.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the kernel fails to take a reference count on the clear_skb pages before asynchronous decryption, so the callback's put_page() drops the count to zero and frees memory still in use.

Impact

A local unprivileged attacker could escalate to root by overwriting process credentials, though the text does not state whether any defence or configuration limits the exploit.

What the attacker needed

Local unprivileged access

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The kernel's TLS code frees a memory page without first marking it as in use, so the page can be reused while still needed. A local attacker can then fill that freed memory with crafted data to leak kernel addresses and change their user ID to root.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by synthex

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.