Two Linux kernel page-cache write vulnerabilities — in the xfrm ESP and RxRPC subsystems — can be chained to achieve deterministic local privilege escalation to root on every major Linux distribution. The exploit, dubbed "DirtyFrag," does not rely on race conditions or timing windows and has a very high success rate.
Patched kernels are now available from every affected vendor except SUSE Linux Enterprise 15 SP3.
Update the kernel and reboot. The fixed version for each distribution is listed in this advisory's affected package data, and the vendor advisories are linked in the references section. The reboot is required — the running kernel stays vulnerable until the patched one is booted.
The upstream fix is mainline commit f4c50a4034e6 ("skb: set SKBFL_SHARED_FRAG on splice-originated frags"); distribution backports carry it as "xfrm: esp: avoid in-place decrypt on shared skb frags".
Where no patched kernel exists — SUSE Linux Enterprise Server 15 SP3-LTSS and SUSE Linux Enterprise Server for SAP Applications 15 SP3, which SUSE still lists as affected — apply the workarounds below instead.
Use these only where no patched kernel is available yet, or as a stopgap until a reboot window.
Blacklist the vulnerable kernel modules (recommended for most systems):
cat <<'EOF' | sudo tee /etc/modprobe.d/dirtyfrag.conf
install esp4 /bin/false
install esp6 /bin/false
install rxrpc /bin/false
EOF
sudo modprobe -r esp4 esp6 rxrpc 2>/dev/null || true
Note: Disabling esp4/esp6 will break IPsec VPN connectivity. Disabling rxrpc will break AFS file system access. Only apply to systems that do not use these features.
Restrict unprivileged user namespace creation where feasible. The xfrm ESP variant requires CAP_NET_ADMIN obtained through user namespaces.
Deploy seccomp profiles blocking AF_RXRPC (family 33) socket creation in containers and sandboxes...
6.8.0-124.1245.15.0-181.1915.4.0-231.2510:6.12.0-124.56.1.el10_10:5.14.0-611.55.1.el9_70:4.18.0-553.124.1.el8_106.12.0-229.el105.14.0-708.el97.0.4-200.fc447.0.4-100.fc43Exploitability
AV:LAC:LPR:LUI:NScope
S:UImpact
C:HI:HA:H7.8/CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H