Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 2 ๐Ÿ“– 8 min read

How to Check Whether Fragnesia Handed Attackers Root on Your Linux Servers

CISA put CVE-2026-46300 on its Known Exploited Vulnerabilities list on October 28 and gave US federal agencies until October 31 to deal with it. That deadline has passed, and the part that should worry anyone running PHP

How to Check Whether Fragnesia Handed Attackers Root on Your Linux Servers

CISA put CVE-2026-46300 on its Known Exploited Vulnerabilities list on October 28 and gave US federal agencies until October 31 to deal with it. That deadline has passed, and the part that should worry anyone running PHP is one sentence in the catalog entry: the kernel flaw "can be chained with CVE-2026-109618 and CVE-2026-109619 to implant PHP webshells and run commands as root."

Those two CVE numbers are PHP2Shell, the remote-code-execution pair we covered in our PHP2Shell patch guide. PHP2Shell gets an attacker a foothold as the web server user. The kernel bug, nicknamed Fragnesia, supplies the missing step from that user to root. Patching PHP alone closes the front door and leaves the stairs in place. This guide covers the kernel half: how to tell if you're fixed, what to do if you can't reboot yet, and what to look at if you think someone got there first.

Prerequisites: Shell access with sudo on the Linux hosts in question, and a maintenance window if a reboot is disruptive. The commands below are for Ubuntu and Debian; Red Hat users should follow Red Hat's own bulletin, RHSB-2026-003.

Not a new bug, a new urgency

The flaw is old news with a new label. The kernel fix was written on May 13 and 14, and NVD published the record on May 23. What changed on October 28 is that CISA found evidence of real exploitation and added it to KEV. Its entry says the ransomware-campaign question is "Unknown," and it sets forensic triage to "Yes," meaning agencies must check for compromise as well as patch.

The technical cause, per the kernel's own description, is in net/core/skbuff.c. When the kernel coalesces socket buffers, a marker saying "these fragments are shared with something else" was being dropped. The IPsec ESP input code trusts that marker to decide whether it may decrypt in place. With the marker gone, ESP can decrypt directly over page-cache memory that backs files. Red Hat's description is blunt about the result: a low-privileged local attacker can write arbitrary bytes into the page cache of read-only files, overwrite privileged binaries, and gain root.

Score and severity vary a little by source. NVD, Red Hat and cve.org all give CVSS 3.1 base 7.8, with a local attack vector, low complexity and low privileges required. Red Hat rates it Important rather than Critical because exploitation needs local access. Ubuntu rates it high priority and calls it a trivial local privilege escalation that could also allow a container escape. The "local" label is why the PHP chain matters: once a web shell exists, the attacker is local.

Diagram of the simplified structure of the Linux kernel, showing system call interface, subsystems and hardware layers

Expand

Diagram of the simplified structure of the Linux kernel, showing system call interface, subsystems and hardware layers

Image: ScotXW via Wikimedia Commons, CC BY-SA 4.0

Which kernels are actually exposed

Upstream says the flaw entered in Linux 3.9, which would put a lot of old machines in scope. Ubuntu's page draws a narrower line. The public proofs of concept need the espintcp kernel module, which first appeared upstream in November 2019 in Linux 5.6, so Ubuntu marks its 20.04 main kernel (4.15 and 5.4 era releases) as not affected in practice. That is a judgement about the published exploits, not a guarantee, and it's the reason Ubuntu's page and the upstream CVE record disagree on old releases. For a host on a newer enterprise kernel there is no such comfort.

Step 1: find out what your host is running

On Debian or Ubuntu, run these two commands:

CodeCopy

uname -r
dpkg -l 'linux-image*' | grep ^ii

The first prints the kernel that is running right now. The second lists the kernel packages installed. If they disagree, you have installed an update and haven't rebooted into it.

Compare the running version with your distribution's fixed version, not with the upstream number. This is where people go wrong. Debian and Ubuntu backport fixes into their own version strings, so Debian 13's fixed kernel, 6.12.90-1, is numerically lower than upstream's 6.12.91.

Distribution Fixed kernel Source
Ubuntu 26.04 LTS 7.0.0-22.22 Ubuntu CVE page
Ubuntu 25.10 6.17.0-35.35 Ubuntu CVE page
Ubuntu 24.04 LTS 6.8.0-124.124 Ubuntu CVE page
Ubuntu 22.04 LTS 5.15.0-181.191 Ubuntu CVE page
Ubuntu 20.04 LTS Not affected for the main kernel Ubuntu CVE page
Debian 11 (bullseye) 5.10.257-1, or 6.1.174-1~deb11u1 for the 6.1 kernel Debian tracker
Debian 12 (bookworm) 6.1.174-1 Debian tracker
Debian 13 (trixie) 6.12.90-1 Debian tracker

Debian's tracker also lists later builds, such as 6.1.190-1 for bookworm and 6.12.113-1 for trixie in the security archive, so anything at or above the listed version is fine. For RHEL, a secondary write-up lists 6.12.0-211.16.1.el10_2 for RHEL 10, 5.14.0-687.10.1.el9_8 for RHEL 9 and 4.18.0-553.125.1.el8_10 for RHEL 8, and says RHEL 6 and 7 are unaffected. Confirm those in Red Hat's bulletin before relying on them, since extended-support streams have their own numbers.

If you build kernels from kernel.org, the CNA record says the fixed releases are 5.10.257, 5.15.208, 6.1.174, 6.6.141, 6.12.91, 6.18.33 and 7.0.10, with the bug dating back to Linux 3.9.

Step 2: update, then reboot, then check again

Ubuntu's advice is to upgrade everything:

CodeCopy

sudo apt update && sudo apt upgrade
sudo reboot
uname -r

The last command is the one that proves it. A kernel package can be installed and still not be running. If unattended-upgrades is on, which Ubuntu says it is by default since 16.04 LTS, patches apply within about 24 hours of release, but the reboot is still yours to schedule.

Step 3: if you can't reboot yet

Ubuntu's published stopgap is the same as for the earlier Dirty Frag bugs: stop the vulnerable modules loading. As reproduced by one security write-up of Ubuntu's blog post:

CodeCopy

echo "install esp4 /bin/false" | sudo tee /etc/modprobe.d/dirty-frag.conf
echo "install esp6 /bin/false" | sudo tee -a /etc/modprobe.d/dirty-frag.conf
echo "install rxrpc /bin/false" | sudo tee -a /etc/modprobe.d/dirty-frag.conf
sudo update-initramfs -u -k all
grep -qE '^(esp4|esp6|rxrpc) ' /proc/modules && echo "Affected modules are loaded" || echo "Affected modules are NOT loaded"

Know the cost before you paste it. Blocking those modules disables IPsec ESP and RxRPC, so an IPsec VPN such as strongSwan stops working, as does AFS. If an application is using the modules, they may refuse to unload, and a reboot enforces the block. After you install the fixed kernel, delete /etc/modprobe.d/dirty-frag.conf and run sudo update-initramfs -u -k all again. These steps are for Debian-family systems. Red Hat's entry only says to see its bulletin, so don't paste them onto RHEL.

Step 4: decide whether you need to look for damage

Ask one question first: was this host running an unpatched PHP and exposed to the internet? If yes, treat "already compromised" as a live possibility.

CISA's forensic-triage guidance for agencies puts evidence before remediation: scope the systems, preserve volatile data, and only then patch, because patching can destroy artifacts. Outside government you aren't bound by it, but the order is sensible. The tampering described here lives in memory, in the page cache, so a reboot can erase the traces. On a host you genuinely suspect, snapshot the VM or capture memory before you restart.

For a quick first pass on a PHP host, look for files that shouldn't exist:

CodeCopy

sudo find /var/www -name '*.php' -mtime -7 -ls

Adjust the path and the time window to your layout. This is a starting point we're suggesting, not a vendor procedure: it finds recently changed PHP files, which is where a dropped web shell would sit. Also review recent logins and processes running as root that you don't recognise. If anything looks wrong, rebuild the host from a known-good image rather than cleaning it by hand.

CISA's implementation guidance for its directive BOD 26-04 gives a rough clock for agencies, which is a useful template even if you aren't one:

Stage Target window after the KEV listing
Scope the affected systems and services within 2 hours
Preserve and collect evidence, memory first 2 to 24 hours
Patch and stabilise 2 to 24 hours
Contain and control 6 to 24 hours
Triage analysis of the evidence 24 to 48 hours
Decide whether to escalate, with a written report 48 to 72 hours

The guidance describes these as recommended practice. The requirement is that an adequate triage happens. Note the order: evidence collection comes before patching, and containment is coordinated with both, because cutting a host off the network too early can destroy the evidence you want.

Who needs to move first

PHP web servers, because the chain is public. Servers with many login accounts, since any of those users becomes a root candidate. Container hosts running other people's workloads, because Ubuntu flags a possible container escape and the kernel is shared. A single-user laptop is the lowest risk, since an attacker needs code running on it already, but the update is the same two commands.

Giant inflatable Tux, the Linux mascot, at a Linux Day event in Milan

Expand

Giant inflatable Tux, the Linux mascot, at a Linux Day event in Milan

Image: User:Kowalski7cc via Wikimedia Commons, CC0

Troubleshooting

The scanner still flags kernel 5.10.257. NVD's configuration lists versions up to and including 5.10.257 as affected, while the kernel CNA record says 5.10.257 is fixed. NVD's status was still "Undergoing Analysis," so the two disagree. Check your distribution's advisory rather than trusting a CPE match.

uname -r hasn't changed after the update. You haven't rebooted. Package installation doesn't switch the running kernel.

Debian shows a lower version than the upstream fix. That's expected. Compare against Debian's tracker, not the kernel.org list.

The modules won't unload. Something is using them, usually an IPsec tunnel. Plan the reboot instead, or take the VPN down first.

Which CVE is this? Nicknames collide. Ubuntu's notes link CVE-2026-43284 and this fix as a pair, and a second kernel commit carries CVE-2026-43503, which another Ubuntu post calls DirtyClone. Match advisories by CVE number, not by nickname.

What remains unclear

The sources don't say who is exploiting the bug, how widely, or against what. CISA's entry confirms exploitation and the PHP chain but gives no timing or scale. Red Hat's detailed mitigation sits behind its bulletin, which we didn't read in full. And the 5.10 boundary dispute above is unresolved. If any of those matter for your estate, check the vendor advisory directly, then patch anyway. Five months between a fix and a KEV listing is a long time to have been running vulnerable kernels.

Hero image: Victorgrigas via Wikimedia Commons, CC BY-SA 3.0

Originally published on Mango Developer.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.