Dirty Frag: Universal Linux LPE Through Page Cache Corruption
Two Linux kernel networking vulnerabilities (xfrm-ESP and RxRPC) allow a local attacker to corrupt the page cache of read-only files, such as /usr/bin/su, and thereby gain root privileges. The exploit is deterministic and works across many major distributions.
medium.com
Published on medium.com
A new Linux privilege escalation vulnerability class named Dirty Frag has emerged, allowing attackers to gain root privileges on nearly all major Linux distributions through deterministic page cache corruption.
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 logic errors in the xfrm-ESP and RxRPC networking subsystems allow corrupted fragment metadata to write into the page cache of read-only files.
Impact
A local attacker could reliably gain root privileges on many Linux distributions, and the exploit does not crash the kernel if it fails.
What the attacker needed
Local access to the system; ability to run code as a normal user; unprivileged user namespaces (for xfrm-ESP variant); rxrpc module loaded (for RxRPC variant)
The fix
The text recommends removing the vulnerable kernel modules and clearing the page cache, and applying official kernel patches when available.
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.
This is a local privilege escalation bug in the Linux kernel. An attacker who can already run code on a machine can use it to become the root user, which is the highest level of control. The flaw lets them silently modify files that are supposed to be read-only, without changing the files on disk.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.