Fragnesia Linux Kernel Flaw Enables Local Privilege Escalation to Root

· Original article ↗

Summary

Fragnesia is a Linux kernel flaw in XFRM ESP-in-TCP that lets unprivileged local attackers corrupt read-only file contents in the page cache and gain root. Vendor patches are recommended; restricting unprivileged user namespaces may partially mitigate risk.

Key points

  • The flaw affects the Linux kernel’s XFRM ESP-in-TCP subsystem and is described as an unintended side effect of a patch for DirtyFrag.
  • It exploits improper handling of shared page fragments during skb coalescing, enabling controlled corruption of file-backed page-cache contents.
  • Attackers can use user and network namespaces to obtain CAP_NET_ADMIN within an isolated namespace and configure a crafted ESP security association.
  • Researchers demonstrated modifying the in-memory contents of /usr/bin/su to obtain a root shell; the on-disk binary is not changed.
  • AppArmor restrictions on unprivileged user namespaces may provide partial mitigation, but additional bypasses may be needed.
  • Apply vendor kernel patches when available; meanwhile, disable esp4, esp6, and rxrpc if not required and restrict unprivileged user namespaces where feasible.
  • If exploitation is suspected, the article recommends rebooting or clearing the page cache.

Article Details

Vulnerability Types
  • Linux kernel logic flaw involving improper handling of shared page fragments during skb coalescing, enabling local privilege escalation through page-cache corruption
Exploitation Status
reported
Exploit Availability
unknown
Patch Status
unavailable
Workarounds
  • Disable the esp4, esp6, and rxrpc modules if they are not required.
  • Restrict or disable unprivileged user namespaces where operationally feasible.
  • AppArmor restrictions on unprivileged user namespaces may provide partial mitigation.

MITRE ATT&CK

People

Products

Related Articles