Vai al contenuto principale

#vmescape

PwnEscape: Linux Kernel Bug Lets Rogue VMs Reach Into the Host

Read Time:4 Minute, 4 Second

A newly disclosed Linux kernel vulnerability, nicknamed PwnEscape, is a reminder that virt

Altro...

Read Time:4 Minute, 4 Second

A newly disclosed Linux kernel vulnerability, nicknamed PwnEscape, is a reminder that virtual machine isolation depends on far more than the hypervisor sitting on top of it. The flaw, tracked as CVE-2026-99999, lives deep in the kernel’s networking stack and can let an attacker-controlled guest peek into host memory — and, under the right conditions, push further toward code execution on the host itself.

A Timing Bug in a Routine Performance TrickThe root cause is surprisingly mundane. Linux often defers calculating a network packet’s checksum until later in processing, a common performance optimization. Packet metadata tells the kernel where that checksum calculation should start and where the result should be written.

Researcher Paulos Yibelo found that this metadata could be manipulated so that a deferred checksum write altered the contents of a packet’s IPv4 header — after the kernel had already made decisions based on the header’s original values. In his proof-of-concept, a packet that initially looked like a standard 20-byte IPv4 header could be reinterpreted as a 60-byte header following the delayed write, tricking the fragmentation code into treating bytes beyond the packet’s valid data as legitimate header content.

The practical result: roughly 32 bytes of host memory leaked into an outgoing packet. On its own, that’s an information disclosure bug. But in a controlled lab environment, researchers chained that leak with careful memory-allocation manipulation to achieve targeted kernel-memory writes and ultimately execute a host-level helper process with root privileges.

Important CaveatsIt’s worth being precise about what has and hasn’t been demonstrated. The escalation from memory leak to root execution was reproduced on systems the researchers controlled themselves — it has not been shown as a working exploit against a live cloud provider’s production environment. The report also doesn’t claim every Linux-based hypervisor configuration is equally exposed. Still, the underlying flaw sits in shared kernel networking code rather than any single hypervisor’s implementation, which is exactly what makes it concerning for cloud operators running untrusted workloads side by side.

Which Kernels Are AffectedThe bug spans a wide range of long-term kernel branches. Fixed versions have been published for each affected line:

5.10 branch — fixed in 5.10.272

5.15 branch — fixed in 5.15.223

6.1 branch — fixed in 6.1.190

6.6 branch — fixed in 6.6.159

6.12 branch — fixed in 6.12.113

6.18 branch — fixed in 6.18.57

7.2 branch — fixed in 7.2.11

7.3 development series — fixed ahead of 7.3-rc7

The upstream patch adds a validation step before certain checksum-completion operations, confirming that the checksum start offset doesn’t fall inside the IPv4 header before allowing the write to proceed. Developers describe it as a defense-in-depth measure rather than a complete overhaul of how packet metadata is validated on input, so further hardening work may follow.

How the Bug SurfacedPwnEscape wasn’t found through routine kernel auditing — it emerged from Vercel’s $1 million Sandbox security challenge, a bug bounty built specifically to stress-test the company’s workload isolation. Yibelo reported the kernel flaw on just the third day of the two-week event, working from a standard sandbox environment with no special access. Vercel has called it the program’s single most important finding; across the full challenge, researchers submitted 1,285 reports and collected a combined $242,000 in bounties, with PwnEscape standing as the only critical-rated submission.

It’s not an isolated data point either. The same research community has recently surfaced a separate KVM escape issue and a distinct Linux vhost flaw with its own public proof-of-concept — different bugs, different root causes, and defenders shouldn’t assume a fix for one covers the others.

What Defenders Should DoFor organizations running virtual machines on Linux hosts — especially cloud providers and anyone hosting untrusted or multi-tenant workloads — the priority is straightforward:

Check your Linux distribution’s security advisories rather than relying on a raw version number, since vendors frequently backport fixes to older kernel releases.

Confirm the running kernel includes the checksum-validation fix described in the upstream commit for your branch.

Prioritize patching on hosts that run guest workloads from external or lower-trust tenants.

Continue monitoring for related findings, since this class of networking-stack bug appears to be an active area of research right now.

PwnEscape is a useful case study in how virtualization security really works in practice: isolation guarantees rest not just on the hypervisor, but on every piece of host operating system code a guest’s traffic touches along the way. When a check made early in packet processing no longer matches what a later stage of the kernel actually sees, that gap is exactly what attackers go looking for.

#linuxkernel #cloudsecurity #vmescape

0

Caricamento...

0
0

Caricamento...

Public Exploit for Linux Kernel ‘Vghost’ Bug Shows Route From Local Access to Root, and Possibly VM Escape

Read Time:4 Minute, 24 Second

A publicly released proof-of-concept exploit is putting fresh pressure on administrators

Altro...

Read Time:4 Minute, 24 Second

A publicly released proof-of-concept exploit is putting fresh pressure on administrators running virtualized Linux infrastructure to patch a high-severity kernel vulnerability, nicknamed “Vghost” by the researchers who disclosed it, before attackers build their own working version from the technical writeup already circulating.

What’s Actually BrokenThe flaw, tracked as CVE-2026-74580 and rated 8.8 on the CVSS v3.1 scale, lives inside the Linux kernel’s vhost subsystem, the piece of infrastructure that lets virtual machines push network and device traffic through the kernel more efficiently by sharing data structures called virtqueues directly between a guest and the host, rather than routing every packet through a slower emulation layer.

The bug centers on how vhost caches IOTLB mappings, the lookup tables it uses to translate a guest’s view of memory into real addresses it can use to locate those virtqueues. When a virtual ring gets reconfigured, say, its address or size changes, the kernel is supposed to invalidate any cached mapping tied to that ring’s descriptor, available, or used data. Vghost exists because, in certain paths, it doesn’t. A later cache hit can skip the address validation that’s supposed to happen and instead reuse a stale mapping to translate the new, reconfigured address, handing kernel memory-copy routines a pointer that was never actually checked.

Researchers tracing the bug’s history on the oss-security mailing list linked it to two earlier, seemingly unrelated kernel changes: one that introduced the metadata caching mechanism in the first place, and a second that deferred when guest I/O address validation actually occurs. Individually benign, the two changes combined to create the gap now being exploited.

Two Separate Attack PathsThe published proof-of-concept demonstrates two distinct ways to abuse the flaw. The more straightforward path is local privilege escalation: any user with permission to open a vhost device node, such as /dev/vhost-net or /dev/vhost-vsock, can prime the stale cache, reconfigure a ring’s address without triggering invalidation, and then fire the queue to read and write arbitrary kernel memory. From there, the demonstrated exploit chain reads kernel memory to calculate the address-space-randomization offset protecting the kernel, then overwrites the kernel’s modprobe_path setting, a trick that lets an attacker redirect the kernel’s module-loading mechanism to execute an attacker-controlled binary with full root privileges.

The researchers say they successfully reproduced this chain across a notably wide range of mainstream distributions, including Ubuntu 26.04, RHEL 9.8, Amazon Linux 2023, Azure Linux 3.0, and Oracle Linux 10.2. Exposure varies by default configuration: on the tested Ubuntu system, access to vhost devices was restricted to members of the kvm group, while the other distributions tested left the relevant device nodes open to ordinary, unprivileged users by default, a meaningfully larger attack surface on systems that haven’t customized those permissions.

The second attack path is more specialized but more alarming: a configuration-dependent route to escaping a virtual machine entirely. It requires a vhost device configured with a virtual IOMMU, the iommu_platform flag enabled, and support for the virtio queue-reset feature (VIRTIO_F_RING_RESET). Under those specific conditions, a guest VM can reset and re-enable one of its own virtqueues in a way that causes the host to reconfigure the ring while the stale cached metadata lingers. When the guest subsequently triggers that queue, the resulting stale mapping can cause a used-ring write that lands outside the guest’s allotted memory and into the heap of the QEMU process running on the host, a condition the researchers say can crash QEMU outright or potentially be steered to influence its control flow. The researchers are careful to frame this as a configuration-dependent risk rather than a universal “every VM can escape” claim.

The Fix, and What to Do Until You’ve Applied ItUpstream Linux maintainers have already shipped a fix that clears the vring metadata cache whenever a ring’s address or size changes, forcing any new configuration to pass IOTLB validation again rather than relying on cached data. Fixed versions are available in the stable kernel series at 5.10.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, and 7.2, and administrators should install whichever fixed kernel or vendor backport applies to their distribution and reboot into it as soon as practical.

For systems that can’t be patched immediately, the researchers and downstream advisories recommend:

Restricting access to all vhost device nodes, not just /dev/vhost-net, but also /dev/vhost-vsock, /dev/vhost-scsi, and the /dev/vhost-vdpa-* family.

Avoiding passing any of those device nodes through to untrusted or multi-tenant containers.

On virtualization hosts, avoiding exposing vhost devices configured with iommu_platform behind a virtual IOMMU to guests you don’t fully trust.

It’s worth stressing that tightening permissions is a stopgap, not a substitute for patching: revoking group membership or device access doesn’t retroactively close file descriptors a process already has open, and it does nothing at all to address the second, guest-triggered attack path. With a working exploit now public and reproducible across most major enterprise Linux distributions, the realistic window for patching before opportunistic exploitation begins is already narrowing.

#linux #privilegeescalation #pocexploit #virtualization #vmescape

0

Caricamento...

0
0

Caricamento...