techweb24.dev
README.md

Linux Kernel CVE-2026-46300 (Fragnesia): Check and Patch

Linux Kernel CVE-2026-46300: Check and Patch ESP Flaw

CVE-2026-46300, nicknamed Fragnesia, is a Linux kernel bug that lets any local user become root. It sits in the kernel's ESP code, the part that handles IPsec encryption, but you don't have to use IPsec to be exposed: on most distributions the ESP modules load on demand, so a normal account or a hacked web app can reach the buggy code. CISA has it on its Known Exploited Vulnerabilities list, chained with the PHP2Shell flaws to turn a hacked PHP site into full root access. This guide shows which kernels are fixed, how to check yours, how to update and reboot, and how to block the ESP modules if you can't patch yet.

Short version: install your distribution's latest kernel and reboot. If you can't reboot yet and the server doesn't use IPsec, block the esp4 and esp6 modules (commands below). That closes the hole until you patch.

What is the Fragnesia bug in CVE-2026-46300?

Fragnesia belongs to the same family as Dirty Pipe and the "Dirty Frag" bugs disclosed in May 2026: a way to write into the kernel's page cache, the in-memory copy of files that Linux keeps for speed. The kernel loses a "shared fragment" marker when it merges network buffers, so the ESP code thinks it can decrypt data in place. If that data is really a cached page from a file, the decryption overwrites the file's cached contents.

The researchers who disclosed it, the V12 team, published an exploit that uses this to overwrite the start of /usr/bin/su in memory and then runs it to get a root shell. The file on disk never changes; only the cached copy in RAM does, which also makes the attack harder to spot afterwards.

The important points for defenders:

  • It's local privilege escalation. The attacker needs to run code on the machine first, even as an unprivileged user. NVD rates it 7.8 (high), and Red Hat rates it Important for that reason.
  • Web shells count as local users. CISA says attackers chain it with PHP2Shell (CVE-2026-109618 and CVE-2026-109619): break in through PHP as www-data, then use Fragnesia to become root.
  • It's being exploited. CISA added it to the KEV catalog on 2026-10-28 with a federal due date of 2026-10-31, and marked it for forensic triage.

Which Linux kernels are affected and fixed?

NVD lists mainline kernels from 3.9 onward as affected. The fix is in these upstream stable releases and later:

Stable branchFixed in
5.155.15.208
6.16.1.174
6.66.6.141
6.126.12.91
6.186.18.33
7.07.0.10

Distribution kernels use their own version numbers and backport fixes, so an Ubuntu, Debian or RHEL kernel won't match this table exactly. Red Hat has shipped fixes for RHEL 8, 9 and 10 and OpenShift; check your distribution's security tracker for CVE-2026-46300 to find the fixed package for your release.

How do I check if my server is exposed?

Start with the running kernel and your distribution, then look at whether the ESP modules are loaded and whether the server actually uses IPsec.

# Running kernel and distribution
uname -r
cat /etc/os-release

# Are the ESP modules loaded right now?
lsmod | grep -E '^esp(4|6)'

# Could they be loaded on demand? (prints the insmod line if so)
modprobe -n -v esp4

# Does this server use IPsec at all?
sudo ip xfrm state list
sudo ip xfrm policy list

If modprobe -n -v esp4 prints an insmod line, the module can be loaded and the server is exposed until it runs a fixed kernel. If the ip xfrm commands print nothing, the server doesn't use IPsec, which means you can safely block the modules as a stopgap.

ESP modules loaded on a server that doesn't use IPsec are a warning sign. On a web server with no IPsec tunnels, esp4 or esp6 showing up in lsmod means something requested them. Check the web logs and running processes described below.

Update the kernel package and reboot the host

Updating the kernel package is only half the job. The running kernel stays in memory until you reboot, unless your vendor's live-patching service explicitly says it covers CVE-2026-46300.

Debian and Ubuntu hosts

sudo apt update && sudo apt full-upgrade -y
sudo reboot

RHEL, Fedora, and compatible hosts

sudo dnf upgrade --refresh -y
sudo reboot

Arch Linux and rolling-release hosts

sudo pacman -Syu
sudo reboot

After the reboot, run uname -r again and confirm it shows the new kernel. On RPM-based systems the new kernel becomes the default boot entry; on Debian and Ubuntu, full-upgrade pulls in the new kernel meta-package.

Do not skip the reboot check. A successful package upgrade does not prove the running kernel changed. If uname -r still shows the old version after rebooting, check your bootloader's default entry.

Can't reboot yet? Block the ESP modules

The researchers who found this bug class recommend blocking the kernel modules where it lives. On a server that doesn't use IPsec, this removes the vulnerable code path without a reboot:

# Stop esp4 and esp6 from loading, then unload them if they're loaded now
printf 'install esp4 /bin/false\ninstall esp6 /bin/false\n' | sudo tee /etc/modprobe.d/disable-esp.conf
sudo rmmod esp4 esp6 2>/dev/null; true

# Confirm: this should now fail instead of printing an insmod line
modprobe -n -v esp4

This breaks IPsec, including strongSwan and Libreswan tunnels, so don't do it on VPN gateways or hosts that rely on IPsec. Those need the kernel update. Remove /etc/modprobe.d/disable-esp.conf once you're running a fixed kernel if you need IPsec later. The researchers also suggested keeping the block in place for now, because more bugs of this kind may turn up in the ESP code.

If the ESP modules are compiled into your kernel rather than built as modules, blocking won't work. In that case the kernel update is the only fix.

Look for signs of a break-in

Because Fragnesia is usually the second step of an attack, look for the first step too. On PHP servers, that means web shells and the PHP2Shell entry point.

# Suspicious POST requests to PHP files (adjust the log path for your server)
grep -iE 'POST .*[.]php' /var/log/nginx/access.log | tail -n 100

# PHP files using functions common in web shells (review hits by hand)
grep -RIn --include='*.php' -E 'eval\(|base64_decode\(|assert\(' /var/www 2>/dev/null | head -n 50

# Processes running as the web user that shouldn't be
ps -u www-data -o pid,etime,cmd

Legitimate code also uses these functions, so treat hits as leads, not proof. Our guide on how to check whether a PHP or WordPress site was hacked goes through the full process.

The page-cache changes Fragnesia makes live only in memory, and a reboot clears them. If you suspect a compromise, isolate the host and collect evidence (running processes, network connections, logs) before rebooting, then follow your incident response process. Don't just delete a web shell and reboot: you need to know how the attacker got in.

Frequently asked questions about CVE-2026-46300

My server doesn't use IPsec. Am I safe?

Not necessarily. Most distributions build ESP as loadable modules, and the exploit can make the kernel load them. Unless the modules are blocked or your kernel is fixed, assume the server is exposed.

Can someone exploit this remotely?

Not on its own. The attacker needs to run code on the machine first. That's why the PHP2Shell chain matters: a remote PHP bug gives them a foothold as the web user, and Fragnesia turns that into root. Patch PHP and the kernel.

Can I avoid rebooting after the kernel update?

Only if your vendor's live-patching service explicitly confirms it covers CVE-2026-46300. Otherwise, reboot. Blocking the ESP modules is a good stopgap on servers without IPsec until you can.

Sources: NVD: CVE-2026-46300, CISA Known Exploited Vulnerabilities Catalog, Red Hat: CVE-2026-46300, oss-security: Fragnesia disclosure, kernel fix commit.

Zubaer Ahammed

Full-stack & Android developer from Bangladesh. Builds web platforms and apps and writes practical tutorials here. zubaer.com

Comments