KVM: arm64: vgic-its: Don't map an LPI from more than one event
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: vgic-its: Don't map an LPI from more than one event
KVM keeps one vgic_irq per LPI. A MAPTI of an LPI whose vgic_irq already exists reuses it for the new ITE and leaves its target vCPU as it was. Mapping one LPI from two events is UNPREDICTABLE (IHI 0069H.b, 5.2.10), but nothing stops a guest from doing it. If the first MAPTI names a collection the guest never maps and the second a mapped one, the LPI translates through the second event with a NULL target vCPU.
When the VMM routes an assigned device's MSI to that event on a host with GICv4 enabled, kvm_vgic_v4_set_forwarding() takes the vPE from the NULL target vCPU and the host oopses:
Unable to handle kernel paging request at virtual address 0000000000001980 [...] Call trace: its_build_vmapti_cmd (drivers/irqchip/irq-gic-v3-its.c:943) (P) its_irq_set_vcpu_affinity (drivers/irqchip/irq-gic-v3-its.c:1380) irq_set_vcpu_affinity (kernel/irq/manage.c:670) its_map_vlpi (drivers/irqchip/irq-gic-v4.c:326) kvm_vgic_v4_set_forwarding (arch/arm64/kvm/vgic/vgic-v4.c:485) kvm_arch_irq_bypass_add_producer (arch/arm64/kvm/arm.c:2977) irq_bypass_register_consumer (virt/lib/irqbypass.c:44) kvm_irqfd (arch/arm64/kvm/../../../virt/kvm/eventfd.c:496) kvm_vm_ioctl (arch/arm64/kvm/../../../virt/kvm/kvm_main.c:5270)
Track in each vgic_irq whether an ITE maps it. Drop a MAPTI of an LPI that is already mapped, as a failed MAPTI already is. Restoring the ITS tables keeps the first ITE it reads for each LPI and drops any later one, so a guest saved with a double mapping still restores. Key the check on the mapping, not on the vgic_irq. A vgic_irq outlives its ITE while anything holds a reference to it, such as the vCPU it was last queued on. A later MAPTI of such an LPI succeeds as before, and now retargets it to its collection.
| Product | Versions |
|---|---|
| Linux Linux | 196b136498b35f1cd787b84465f235e69dbc757c to before db94fea3a82f7fd8e6827f2affd4ad40243dcf15 Affected196b136498b35f1cd787b84465f235e69dbc757c to before 36c278e03b9ed9022529860c8f5a046e7e97be77 Affected196b136498b35f1cd787b84465f235e69dbc757c to before cea825f669baf8bce8056c9ec8669c54357e47fc Affected196b136498b35f1cd787b84465f235e69dbc757c to before 784e18324c10c283f32ec4cf1a0e26d73da1bf49 Affected196b136498b35f1cd787b84465f235e69dbc757c to before a3ed074678869ec13796f9302ee2ff2601eccea5 Affected196b136498b35f1cd787b84465f235e69dbc757c to before 91659e1f13feefc5036ee42ef205a50085f942d2 Affected196b136498b35f1cd787b84465f235e69dbc757c to before 5d8167f64801ada091f3275553e394f453d0f1a1 Affected196b136498b35f1cd787b84465f235e69dbc757c to before de81b28f0b83b22163d7d9a9b708d7aa912e0ef7 Affected |
| Linux Linux | 4.15 Affectedbefore 4.15 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/db94fea3a82f7fd8e6827f2affd4ad40243dcf15
- https://git.kernel.org/stable/c/36c278e03b9ed9022529860c8f5a046e7e97be77
- https://git.kernel.org/stable/c/cea825f669baf8bce8056c9ec8669c54357e47fc
- https://git.kernel.org/stable/c/784e18324c10c283f32ec4cf1a0e26d73da1bf49
- https://git.kernel.org/stable/c/a3ed074678869ec13796f9302ee2ff2601eccea5
- https://git.kernel.org/stable/c/91659e1f13feefc5036ee42ef205a50085f942d2
- https://git.kernel.org/stable/c/5d8167f64801ada091f3275553e394f453d0f1a1
- https://git.kernel.org/stable/c/de81b28f0b83b22163d7d9a9b708d7aa912e0ef7
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.