Skip to content
Memory corruption Write-up Advanced

Dirty Frag (CVE-2026-43284 and CVE-2026-43500): Detecting unpatched local privilege escalation via Linux Kernel ESP and RxRPC

Two Linux kernel vulnerabilities in IPsec ESP and RxRPC allow an unprivileged local user to corrupt page cache memory and overwrite setuid binaries like /usr/bin/su, leading to root privilege escalation. A public proof-of-concept chains both flaws to bypass distribution-specific hardening.

webflow.sysdig.com

Published on webflow.sysdig.com

linkedin

The author, on webflow.sysdig.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

The kernel decrypts network data in place without verifying that the memory being written to belongs to the network buffer rather than a shared page cache page.

Impact

Any local unprivileged user on a vulnerable kernel can gain root access, and container workloads inherit host kernel exposure, though the exploit requires local access and specific socket families.

What the attacker needed

Local unprivileged access; vulnerable kernel version; ability to create AF_KEY, XFRM netlink, or AF_RXRPC sockets

The fix

The vulnerabilities should be fixed by updating to a patched kernel version, and until then by preventing vulnerable modules from loading and restricting socket families via seccomp.

How it was found

  1. Open a pipe and use vmsplice() to attach a page from the /usr/bin/su page cache as a paged fragment.
  2. Configure an XFRM SA with attacker-chosen cipher, key, and SPI via AF_KEY or XFRM netlink.
  3. splice() the pipe into a UDP socket configured for ESP encapsulation and send a crafted ESP datagram to loopback.
  4. The kernel decrypts the data in place across the spliced page, depositing a 192-byte x86_64 stub directly into the cached pages of /usr/bin/su.
  5. Run /usr/bin/su; the patched binary executes and yields a root shell.

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.

These bugs let a normal user on a Linux computer become the administrator (root) without permission. The kernel keeps copies of files in memory to speed things up, and a mistake in how it handles incoming network data lets an attacker overwrite those in-memory copies of important programs. When someone later runs the altered program, the attacker's code runs with full privileges.

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.

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.