Fragnesia in the Wild: How a Local Linux Root Bug Became a Firewall Takeover

Fragnesia (CVE-2026-46300) was disclosed on 13 May as yet another local privilege escalation in the Linux kernel. Local only, CVSS 7.8, and a public proof of concept. It’s the kind of bug that goes to the back of the patch queue behind anything with “remote” in the title.

At the end of October it came back in the news. CISA added it to the Known Exploited Vulnerabilities catalogue on 28 October, and Dream Research reported it being used as the second stage of an attack on Palo Alto Networks firewalls. This is nearly a month after the headlines. I’m writing it now because the headlines were about PAN-OS, and the lesson isn’t specific to PAN-OS.

I haven’t reproduced the exploit and I’m not going to. Everything below comes from the public reporting, and I’ve marked where that reporting stops.

What Fragnesia actually is

Fragnesia sits in the kernel’s XFRM ESP-in-TCP code, the part of the IPsec stack that carries ESP packets over TCP. The name describes the bug: when the kernel merges socket buffers, it forgets that a memory fragment is shared. Pages that belong to the file cache then look safe to write to, and an unprivileged local user can modify them.

Two details matter for defenders:

  • The change lives in memory, not on disk. The attack alters the cached copy of a file and leaves the binary on disk untouched. The public proof of concept targets /usr/bin/su to get a root shell. A file integrity check that hashes files on disk won’t see it, and a reboot discards it.
  • It came from a patch. Hyunwoo Kim, who found Dirty Frag, said the Dirty Frag fix for CVE-2026-43284 accidentally activated this bug. Tenable’s FAQ says plainly that the Dirty Frag patches don’t fix Fragnesia. If you patched Dirty Frag in the first half of May and stopped there, you weren’t done.

It belongs to the same family as Copy Fail and Dirty Frag: three kernel root bugs in about three weeks, all around page cache corruption.

The chain

Fragnesia on its own doesn’t give anyone a way in. The reporting describes three stages:

StageWhatWhat the attacker gets
1Two PHP remote code execution flaws, collectively called PHP2Shell, reached through an internet-exposed PAN-OS management interfaceCode execution on the device
2FragnesiaRoot
3PersistenceA root webshell

Dream Research said the whole chain could establish a persistent root webshell in under 15 minutes. They reported 25 compromised systems, 24 exposed firewalls and one internal management server, in the US, Japan, Taiwan and South Korea. Three were tied to a US government-affiliated environment. Palo Alto corroborated the findings on 29 October, and Unit 42 independently verified the attacker tooling.

The first stage is the one that needed the exposed management interface. Palo Alto’s own statement is that PHP2Shell was exploited against interfaces reachable from the internet, and that it doesn’t affect GlobalProtect or Captive Portal.

What the reporting doesn’t settle

  • How PAN-OS gets the Fragnesia fix. The coverage I read points to Palo Alto’s advisory for the PHP2Shell fixes. It doesn’t say whether PAN-OS needs a separate update for the kernel bug, or which PAN-OS builds carry a fixed kernel. The Fragnesia fix itself is a kernel update.
  • The PHP2Shell identifiers. eSecurity Planet lists them as CVE-2026-109618 and CVE-2026-109619. I couldn’t confirm those against Palo Alto’s own advisory, so check it before you put them in a ticket.
  • The privilege level after stage one. Nothing I found says which account the PHP flaws land you in, only that Fragnesia was needed for root.

If you run PAN-OS, the Palo Alto advisory is the source for what to install. I’m not a Palo Alto shop, and this post isn’t a substitute for it.

Why “local only” misleads

A CVSS vector scores the bug in isolation. Attackers don’t use bugs in isolation. A local privilege escalation is worth almost nothing without a foothold and worth a great deal with one, and the foothold is rarely hard to find on an exposed management plane.

That’s the pattern I keep coming back to. In my CVE-2026-0322 post, the vector said high privileges were required and the result was root anyway. Here the vector says local and the result is a firewall takeover. In both cases the number describes one link and the incident is the chain.

The other point is about ownership. If Fragnesia is in an appliance’s kernel, you can’t apply a distribution kernel update yourself. You wait for the vendor. The only control you hold in the meantime is whether an attacker can reach stage one at all, and that’s a network decision.

Checking your own Debian hosts

On a Linux host you do control, the first question is whether the code is a loadable module on your kernel. Canonical’s guidance for Ubuntu is to disable the ESP modules if you can’t patch yet, and that only works if they are modules:

grep -E 'CONFIG_INET6?_ESP=' /boot/config-$(uname -r)

=m means a loadable module you can block. =y means it’s built in and blocking does nothing. Next, see whether they’re loaded:

lsmod | grep -E '^(esp4|esp6)'

If a host has no IPsec in the kernel (no strongSwan or Libreswan, nothing using XFRM), blocking the modules costs nothing:

printf 'install esp4 /bin/false\ninstall esp6 /bin/false\n' | sudo tee /etc/modprobe.d/block-esp.conf
sudo update-initramfs -u

I use install ... /bin/false rather than blacklist because a plain blacklist line only stops automatic loading by alias. It doesn’t stop modprobe esp4 or a dependency pulling the module in. It’s the same approach as the module block I used for Dirty Frag, which also covers Fragnesia on my Debian hosts. If a host does run kernel IPsec, don’t do this. You’ll break your tunnels, so patch the kernel instead. WireGuard doesn’t use these modules, so it’s unaffected.

To see whether the kernel you’re running has the fix:

apt changelog linux-image-$(uname -r) | grep -m1 CVE-2026-46300

A hit confirms it. A miss doesn’t prove the fix is absent, because changelogs don’t always name the CVE. I learned that checking the Proxmox kernel last month. The Debian security tracker is the authority for which package version is fixed in your release.

Since the modification happens in memory and leaves the disk copy alone, add an execution watch on the binary the public proof of concept targets. I use auditd, so:

echo '-w /usr/bin/su -p x -k su-exec' | sudo tee /etc/audit/rules.d/su-exec.rules
sudo augenrules --load
sudo ausearch -k su-exec -i

On a quiet server, a flood of su executions from a service account is worth reading. On a busy one it’s noise, so treat it as a tripwire for the hosts where nobody should be running su at all.

The Fortinet translation

I haven’t checked FortiGuard PSIRT for anything on Fragnesia, and I’m not claiming FortiOS is affected. What the chain gives a Fortinet engineer is a design check on stage one: can anything on the internet reach your management plane?

The answer I aim for is short. Management access goes on a dedicated interface or VRF, admins are pinned to trusted source ranges, and the WAN interfaces don’t offer admin services at all. The standard FortiOS settings look like this:

config system admin
    edit "admin"
        set trusthost1 10.10.10.0 255.255.255.0
    next
end
config system interface
    edit "wan1"
        set allowaccess ping
    next
end

I covered the design side in management plane separation on FortiGate SD-WAN. Neither setting would have patched anything on the PAN-OS devices in this story. They would have removed the first stage of the chain, and without that stage there was nothing for the kernel bug to escalate from.

What I would do

  1. Find every internet-facing management interface you own. Firewalls, controllers, managers and the Linux box under your desk. Close the exposure first and patch second.
  2. Patch the kernel on hosts you control. Dirty Frag fixes alone don’t cover this one. Reboot, because a running kernel keeps the old code.
  3. Where you can’t patch yet, block the ESP modules, but only on hosts that don’t run kernel IPsec.
  4. For appliances, wait for the vendor’s advisory and read it for the kernel fix, not only the web-interface fixes.
  5. Hunt for stage one and stage three, not Fragnesia itself. Unexpected management logins, new webshells, unexplained root activity and persistent tunnels are what the incident reports describe.

The one thing I’d take from this story is that “local only” is a statement about one bug, and an attacker with a way in doesn’t care about it.

Sources: eSecurity Planet on the CISA listing, Tenable Fragnesia FAQ, Help Net Security, SC Media, The Register, Field Effect on PHP2Shell.