Sansec logo

Linux DirtyClone kernel vulnerability

Sansec

by Sansec

Published in Guides

In June 2026, JFrog Security Research published DirtyClone (CVE-2026-43503), a Linux kernel vulnerability that lets a local user gain root on most distributions. DirtyClone is a variant of DirtyFrag that works even on systems that have already patched DirtyFrag, by laundering the kernel's shared-fragment safety flag through packet cloning.

eComscan will alert if your server is running a kernel that is vulnerable to DirtyClone. In most situations, the fix can only be applied by your server administrator / hosting provider.

Risk for ecommerce stores

DirtyClone requires local code execution to be useful, so a single-user dedicated server is at lower risk. However, the flaw is dangerous on:

  • Multi-tenant hosting and shared servers
  • Containers and Kubernetes clusters
  • CI/CD runners and build hosts
  • Any system where untrusted PHP, plugins, or extensions can run

If an attacker first lands a webshell through, for example, a vulnerable Magento extension, DirtyClone lets them escalate from the web user to full root and disable any host-level security tooling. Attackers may then easily gain administrator access, which makes it extremely hard to detect their presence.

Status

The fix has been merged into the upstream Linux kernel (mainline commit 48f6a5356a33, first released in v7.1-rc5) and distributions have begun shipping patched kernel packages. For example, Ubuntu, which tracks the issue as "Fragnesia", fixes it in 24.04 (noble) at kernel 6.8.0-124 and in 22.04 (jammy) at 5.15.0-181.

Update to a patched kernel and reboot at your earliest convenience, and we strongly recommend enabling automatic security updates. If a patched kernel is not yet available for your distribution, apply the emergency mitigation below.

Emergency mitigation

Mitigation requires administrator access, so typically your hosting provider should apply this.

Block the vulnerable modules from loading and unload them if they are currently active:

cat > /etc/modprobe.d/dirtyclone.conf <<EOF
install rxrpc /bin/false
install esp4 /bin/false
install esp6 /bin/false
EOF
rmmod rxrpc esp4 esp6 2>/dev/null || true

The rxrpc module is rarely used outside AFS deployments, so disabling it has no impact on regular ecommerce workloads. The esp4 and esp6 modules implement IPsec ESP. Only blacklist these if your server does not use IPsec VPNs, otherwise IPsec tunnels will fail to come up.

DirtyClone also needs unprivileged user namespaces to reach the vulnerable code without root. On Debian and Ubuntu you can disable them as defense-in-depth, provided your workloads do not require them:

sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' > /etc/sysctl.d/99-dirtyclone.conf

For container hosts running untrusted workloads, also restrict capabilities and namespace creation through seccomp and AppArmor profiles.

More information

Need expert advice? We are here to help!

Stay up to date with the latest eCommerce attacks

Sansec logo

experts in eCommerce security

Terms & Conditions
Privacy & Cookie Policy