Skip to content
Memory corruption Write-up Advanced

DirtyClone: Linux Çekirdeğinde Root Erişimi Sağlayan Yeni Bir

A Linux kernel flaw in the packet cloning function drops a security flag that protects file-backed page cache pages from in-place modification. An unprivileged local user can overwrite a privileged binary in memory and gain root access without touching the disk.

Dogukan İSPİRLİ Follow

Published on medium.com

JFrog Security Research ekibinin yayımladığı bir araştırma, Linux güvenlik dünyasında ciddi bir sarsıntı yarattı. DirtyClone adı verilen ve CVE-2026-43503 olarak doğrulanan bu açık, unprivileged yerel kullanıcıların, sistemi tamamen ele geçirerek root erişimi kazanmasına imkân tanıyor. Üstelik bunu yaparken çekirdek…

Dogukan İSPİRLİ, on 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 packet cloning function `__pskb_copy_fclone()` fails to preserve the `SKBFL_SHARED_FRAG` flag, so file-backed page cache pages lose their protection against in-place cryptographic writes.

Impact

An unprivileged local user could gain root access, and the attack leaves no trace in kernel logs or audit records and does not modify the on-disk file; Ubuntu 24.04 and later have partial AppArmor restrictions but are still listed as affected.

What the attacker needed

Local unprivileged user account; unprivileged user namespaces enabled; IPsec/XFRM modules available

The fix

The fix was merged into Linux mainline on 21 May 2026 and first shipped in Linux v7.1-rc5; users should update their kernel or apply the backport, and can also restrict unprivileged user namespaces or disable unused IPsec modules.

How it was found

  1. Memory-map a privileged binary such as /usr/bin/su to load it into the page cache.
  2. Splice the file-backed page into a UDP socket buffer without copying it.
  3. Create a user namespace with CAP_NET_ADMIN and set up a loopback IPsec tunnel.
  4. Add a netfilter TEE rule to clone the packet through the vulnerable function.
  5. Force in-place IPsec decryption so the cloned packet writes over the page cache page.
  6. Run the modified binary to bypass authentication and gain root.

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 Linux kernel keeps a copy of files in memory (the page cache) to speed up access. A security check was meant to stop network code from writing into those in-memory copies, but a function that duplicates network packets forgets to keep that check. A local user can abuse this to silently alter a privileged program in memory and become the root administrator.

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 Dogukan İSPİRLİ

View all

4 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.