Go straight to an AI summary of this blog post instead

  • Summarize this post with Perplexity
  • Summarize this post with Gemini

The Short Version

What: A Linux local privilege escalation and container escape nicknamed ipv6-frag-escape. An arithmetic mistake in the IPv6 packet output path (__ip6_append_data()) under-sizes a socket buffer’s linear head by fraggap bytes, so a later copy overflows into the skb_shared_info at the tail of the same allocation. That in-slab heap overflow is enough to take an unprivileged process inside a container and turn it into root on the host. No CVE has been assigned at publication time.

Impact: A public proof of concept from sgkdev (github.com/sgkdev/ipv6_frag_escape) returns an interactive root shell in the host’s initial namespaces and root filesystem, starting from an unprivileged process inside a network-isolated container. The README lists tested targets including CentOS Stream 10 on 6.12.0-242.el10 and RHEL 10 on 6.12.0-228.el10. KernelCare reproduced host root in-house on AlmaLinux 10.2 (6.12.0-211.7.3.el10_2) on June 29, 2026 – uid=0 in the init namespaces, on the first attempt.

Status: This is a mainline bug, fixed upstream in Linux 7.2-rc1 by merge commit 38becddc, which carries the IPv6 fix 736b380e28d0 and the IPv4 sibling eca856950f7c. The affected window is 6.6 through 7.1. As of this morning there were no distribution backports; that is already changing – AlmaLinux landed the upstream IPv4/IPv6 fraggap fixes in its kernel package source at 08:51 UTC on June 30 (6.12.0-211.28.2). Check your distro’s repos before assuming you are still waiting on a fix.

Severity: High for exposed EL10 systems. Local attack vector, low complexity once the prerequisites are present, no user interaction, and a working public exploit against stock EL10. There is no CVSS score because there is no CVE yet. Bug class: heap/slab linear overflow → page use-after-free → privilege escalation and namespace escape.

Why this matters: The trigger is reachable by any unprivileged process – the upstream fix commit says so directly: a UDPv6 socket using MSG_MORE together with MSG_SPLICE_PAGES. No host capability is required, only access to unprivileged user namespaces inside the container. Container hosts, shared hosting, CI runners, and multi-tenant Linux are exactly the environments this collapses, because the exploit ends on the wrong side of the boundary those platforms are built around.

Do this now: Apply a fixed kernel or a KernelCare rebootless patch where available. Until then, the single most effective EL10 stopgap is booting with init_on_alloc=1, which degrades the public exploit into a kernel crash rather than a root shell – this is already the compile-time default on Ubuntu and Debian, which is why the same bug is DoS-only there. Where your workload can tolerate it, disabling unprivileged user namespaces removes the escape primitive. Treat both as stopgaps.

Tired of scheduling another emergency reboot?

KernelCare applies Linux kernel patches without downtime, disruption, or emergency maintenance windows.
KernelCare status (2026-06-30, 09:00 UTC): For KernelCare users, EL10 rebootless patch builds are rolling into the test feed for RHEL 10, Oracle Linux 10, Rocky Linux 10, and AlmaLinux 10. Customers who need immediate protection can apply the test-feed patch after validation.

Get KernelCare

The Long Version

ipv6-frag-escape is another case of a Linux kernel bug going from “small arithmetic fix” to “public root exploit” before most organizations have a CVE, a scanner rule, or a vendor advisory to act on.

KernelCare became aware of the public PoC on June 29 and reproduced host root in-house on a stock AlmaLinux 10.2 box the following morning, with a rebootless patch in build shortly after.

The repo describes itself as a reliable unprivileged container and jail escape for CentOS and RHEL 10, riding a now-fixed IPv6 fragmentation bug in __ip6_append_data() that produces an in-slab linear overflow into skb_shared_info.

One framing to hold onto before the details: this is a mainline bug, not an EL10 quirk. Every kernel from 6.6 through 7.1 without the fix carries the vulnerable code. EL10 is simply the only target with a public, weaponized exploit today, and the gates in that exploit – an EL10 uname check, 5-level paging, init-on-alloc being off – are properties of the weapon, not the bug.

How the Exploit Works

The chain runs from an unprivileged socket write to a host root shell:

[Unprivileged socket input]
│  UDPv6 + MSG_MORE + MSG_SPLICE_PAGES
▼
[__ip6_append_data() miscalculation]
│  linear head under-sized by fraggap bytes
▼
[Linear slab overflow]
│  writes past skb->end into skb_shared_info
▼
[Page use-after-free]
│  put_page() drops a ref on an attacker-owned page
▼
[Dirty-Pagetable reclamation]
│  freed page reused as a leaf page table → kernel R/W
▼
[Host namespace escape]
│  credentials overwritten, SELinux neutered, core_pattern hijacked
▼
[Host root shell (uid=0)]

The allocation bug. In net/ipv6/ip6_output.c, when __ip6_append_data() takes the paged-allocation branch it computes alloclen = fragheaderlen + transhdrlen and pagedlen = datalen - transhdrlen. The trouble is that datalen already includes fraggap – bytes carried over from the previous skb that then get copied into the linear head. So the head is short by exactly fraggap bytes while pagedlen is overstated by the same amount.

The overflow. The follow-up copy writes past skb->end into the skb_shared_info sitting at the tail of the packet’s own head object. A clean, in-slab linear heap overflow.

The trigger. An unprivileged process reaches the buggy path through a UDPv6 socket using MSG_MORE together with MSG_SPLICE_PAGES. The bad accounting was introduced back in 6.0 by the zero-copy send path, but it stayed unreachable until the MSG_SPLICE_PAGES handling in 6.6 let the path proceed instead of returning -EINVAL. That is why 6.6 is the lower bound.

Overflow to kernel read/write. The corruption gives control of the single nr_frags byte in skb_shared_info. With a pipe-buffer page pointer pre-planted in an uninitialized frags[] slot, socket teardown (skb_release_data() → put_page()) drops a reference on a page the attacker still owns, turning the overflow into a page use-after-free. The freed page is then reclaimed as a last-level page table – the Dirty-Pagetable condition – so a single physical page is both a live page table and a page the attacker still reads and writes through the pipe. A forged self-aliasing PTE widens that into broad kernel read/write.

Escape to the host. From kernel read/write, the PoC defeats KASLR using the fixed low-memory SMP-trampoline page table, overwrites process credentials, patches the SELinux denial path in memory, and hijacks core_pattern so a usermodehelper runs as root in the host’s initial namespaces. That last step is the escape.

The public README documents this chain but deliberately leaves out the reliability scaffolding – the PCP grooming and cross-cache work that make it fire consistently – and scopes the shipped binary to EL10 with a 5-level-paging requirement. It is a proof of concept, not a turnkey weapon. Two consequences matter for defenders, though: after the exploit runs, getenforce still reports Enforcing even though SELinux enforcement has been defanged, and the corruption lives in kernel memory rather than on disk, so file-integrity tooling has nothing to flag.

What the Upstream Fix Changes

The fix is a few lines, which is exactly why the issue is easy to underestimate. On the IPv6 paged-allocation path it adds fraggap to alloclen and subtracts it from pagedlen, so the linear head is large enough for the bytes actually copied into it and the paged portion shrinks to match. It also drops the now-dead MSG_SPLICE_PAGES exception in the negative-copy check.

The IPv4 path in __ip_append_data() carried the identical accounting mistake and gets the same correction (eca856950f7c). IPv6 is the exploitable, more severe case; the IPv4 sibling is fixed for completeness. Because both functions process per-packet send paths and carry no persistent state, the fix is a strong candidate for a near-verbatim rebootless patch.

Who Is Affected

The bug is wider than the exploit. The safest working assumption is that any kernel in the 6.6 through 7.1 window carries it unless it has the upstream fix or a downstream backport. The public PoC, on the other hand, is narrow on purpose: it targets EL10-family 6.12.x kernels, needs unprivileged user namespaces, expects 5-level paging (LA57), and depends on CONFIG_INIT_ON_ALLOC_DEFAULT_ON being off.

Confirmed exploitable – host root observed:

  • CentOS Stream 10 on 6.12.0-242.el10, listed as a target by the PoC author.
  • RHEL 10 on 6.12.0-228.el10, also listed by the PoC author.
  • AlmaLinux 10.2 on 6.12.0-211.7.3.el10_2, reproduced in-house by KernelCare on June 29, 2026.

Expected exposed: RHEL 10, CentOS Stream 10, AlmaLinux 10, Rocky Linux 10, Oracle Linux 10, and CloudLinux OS 10 running affected 6.12.x EL10-family kernels without the fix or a rebootless patch. These flavors share RHEL 10’s build assumptions, including init_on_alloc off, so treat them as exposed unless you have confirmed otherwise.

Bug present, current public technique reduced to denial of service:

  • Ubuntu 24.04 “Noble” (6.8) and Debian 13 “Trixie” (6.12.x). KernelCare’s testing found CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y on the shipped kernels, which zeroes the planted stale pointer and collapses the chain into a kernel crash rather than a root escape. The PoC is also hard-gated to an EL10 uname and to 5-level paging, so it does not run on these as shipped.

That DoS-only outcome is specific to the current technique. The README signals that a different, init-on-alloc-aware exploit may follow once the fix and a CVE are public. Treat Ubuntu and Debian as exposed-but-not-currently-weaponizable, not safe.

Not affected by this trigger:

  • Kernels older than 6.6, where the MSG_SPLICE_PAGES path is absent and the trigger returns -EINVAL.
  • Kernels carrying merge 38becddc, IPv6 fix 736b380e28d0, IPv4 fix eca856950f7c, or a downstream backport.

One caution: a system that simply fails the PoC’s assumptions – 4-level paging, for instance – is not fixed. It is safe from this exact PoC while the kernel bug remains present underneath.

Mitigate Now

The durable fix is a patched kernel or a KernelCare rebootless patch. Until that is everywhere, there are two practical levers.

  1. Enable init-on-alloc (recommended on EL10). The public exploit depends on planting a stale pointer in uninitialized slab memory. Zeroing memory on allocation breaks that route. It is already on by default on Ubuntu and Debian; on EL10 it is typically off.

Check the kernel config, not the boot command line – this is usually a compile-time default and will not show up in /proc/cmdline:

grep CONFIG_INIT_ON_ALLOC_DEFAULT_ON /boot/config-$(uname -r)   # =y means on

To turn it on where it is off:

sudo grubby --update-kernel=ALL --args="init_on_alloc=1"
sudo reboot

The cost is a small allocator overhead. The catch is that it needs a reboot to apply, so it fits a maintenance window rather than an emergency same-minute response.

  1. Disable unprivileged user namespaces. The chain starts from an unprivileged process inside a container and relies on unprivileged namespace behavior. Removing that primitive breaks the public path regardless of allocator state.
sysctl user.max_user_namespaces             # check current value
sudo sysctl -w user.max_user_namespaces=0
echo 'user.max_user_namespaces = 0' | sudo tee /etc/sysctl.d/99-ipv6-frag-escape.conf

This breaks rootless Podman and Docker, some CI sandboxing, Flatpak-style sandboxes, unprivileged unshare(1), and browser sandboxes. Fine on dedicated server profiles, disruptive on developer and container hosts. Test before broad rollout.

Decision moment: If the host runs no rootless containers and you can take a reboot → set init_on_alloc=1; it downgrades the bug to a crash even if the userns primitive returns later. If you cannot reboot but can give up unprivileged userns → disable it as a no-reboot stopgap. If you need both rootless containers and zero downtime → the rebootless patch or a fixed kernel is the only real answer, and you should isolate untrusted local execution until one lands.

KernelCare Rebootless Patch

Both __ip6_append_data() and __ip_append_data() are per-packet send paths with no persistent cross-call state, which makes the upstream arithmetic correction a clean kpatch port.

Feed status (2026-06-30, 09:00 UTC): EL10 builds have started rolling into the test feed for RHEL 10, Oracle Linux 10, Rocky Linux 10, and AlmaLinux 10.

Apply from the test feed after validation:

sudo kcarectl --update --prefix test

Once promoted to the main feed, it arrives on the next scheduled run, or pull it on demand:

sudo kcarectl --update

Verify the patch is active:

kcarectl --info | grep kpatch-build-time      # build dated 2026-06-30 or later

Once a CVE is assigned, kcarectl --patch-info | grep CVE-2026- should surface it as well. Separately, if you are managing EL10 kernels directly, AlmaLinux already has the upstream fixes in its kernel package source (6.12.0-211.28.2) as of June 30 – worth watching your repos and other vendors’ trees for the matching errata.

Detection

There is no clean post-exploitation signature for this class of bug. The chain ends in arbitrary kernel read/write and can disable SELinux enforcement while normal status checks still look reassuring, and nothing on disk changes. The signals that actually map to this exploit’s behavior are behavioral:

  • Unexpected changes to /proc/sys/kernel/core_pattern, especially a |-prefixed handler – the PoC overwrites it to launch a usermodehelper as root.
  • A container or child process crashing immediately before an unusual privileged process starts on the host.
  • SELinux audit gaps: enforcement appears on, but expected denials stop appearing on a host that should be generating them.

Audit core_pattern and watch for the crash-then-privileged-exec sequence. Treat these as weak signals rather than proof. Note that this PoC defeats KASLR through the fixed SMP-trampoline page table, so it does not need to read /proc/kallsyms or BTF – those classic kernel-exploit tells will not show up here. If an untrusted or semi-trusted user or workload had local execution on an affected EL10 host during the exposure window, prioritize patching and assume the host may warrant deeper review.

Why This One Matters

ipv6-frag-escape is not remote code execution, and it is not a “every Linux box instantly falls over” bug. For container hosts, shared hosting platforms, CI systems, developer sandboxes, and multi-tenant Linux, it is worse in a narrower way: it collapses the exact boundary those platforms are built around. The exploit starts from an unprivileged process and ends with root in the host’s initial namespaces.

When a working PoC exists before a CVE or a stable backport, the usual scanner-driven patch workflow has nothing to trigger on. Defenders have to act on the technical facts directly. The fix is small. The operational urgency is not.

Prioritized Remediation Checklist

  1. Patch or rebootless patch affected EL10 systems first, especially container hosts and anywhere untrusted or semi-trusted code can run.
  2. Enable init_on_alloc=1 where a fixed kernel or rebootless patch is not yet deployed.
  3. Disable unprivileged user namespaces where the workload can tolerate it.
  4. Treat Ubuntu 24.04 and Debian 13 as “bug present, current public technique blocked,” not as safe.
  5. Audit core_pattern and SELinux denial activity on exposed hosts.
  6. Monitor for CVE assignment and downstream vendor errata, and revisit systems once stable backports land – even if the public PoC never ran in your environment.

References

Patch every kernel, no reboot required. If you are not yet a KernelCare user, now is a good time to see how rebootless patching protects critical Linux systems without emergency maintenance windows or downtime.

Get KernelCare today →

Join 4,500+ Linux & Open Source Professionals!

2x a month. No spam.

Table of Contents
Get the open-source security answers you need

Join 4,500+ Linux & Open Source Professionals!

2x a month. No spam.