Skip to content
Race condition Write-up Advanced

ITScape (CVE-2026-46316): KVM/ARM64 VM escape

A race condition in the in-kernel KVM arm64 vGIC-ITS emulation allows a guest with EL1 privilege to trigger a double-put on a vgic_irq refcount, leading to a use-after-free in the host kernel. An attacker could exploit this to achieve host-kernel code execution from inside an unprivileged guest.

nofire.ai

Published on nofire.ai

ITScape is the first publicly documented guest-to-host escape on KVM/arm64. It abuses a race condition in the in-kernel vGIC-ITS emulation to reach host-kernel code execution from inside an unprivileged guest.

NOFire AI, on nofire.ai

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a race condition in vgic_its_invalidate_cache() and vgic_its_process_commands() where concurrent MMIO accesses cause a double-put on a vgic_irq refcount, leading to a use-after-free.

Impact

An attacker with EL1 privilege in a guest could achieve host-kernel code execution, but this requires the guest to have EL1 access and the host to expose the GIC ITS; urunc's seccomp filter blocks the ITS creation, preventing the attack.

What the attacker needed

Guest with EL1 privilege; host kernel vulnerable version; GIC ITS exposed to guest

The fix

The vulnerability was fixed in commit 13031fb6b835, and additionally, blocking KVM_CREATE_DEVICE for the ITS type via seccomp (as urunc does) prevents exposure.

How it was found

  1. Map the ITS and GICR MMIO regions via /dev/mem in the guest.
  2. Read the ITS IIDR register to confirm ITS presence.
  3. Initialise the ITS command queue and redistributor LPI tables.
  4. Create 64 devices × 32 events (2048 LPIs).
  5. Race two threads: one issuing INT commands, the other toggling GICR_CTLR.EnableLPIs.
  6. Trigger the double-put and use-after-free, then spray guest_memfd to reclaim the freed object and execute the full exploit chain.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A virtual machine normally cannot break out and run code on the physical host. This bug is in the host's kernel code that emulates an interrupt controller for the guest. By racing two operations, the guest can corrupt host memory and eventually run commands as root on the host.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.