Linux kernel denial of service in GICv4 VLPI setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a75460547e13c99762c2f9dbfcdd13ad416f91c5 · < c8a911b3b07baa0aeb3dbc4e16a4670bd21bed40| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
irqchip/gic-v4: Don't advertise VLPIs if no ITS is probed
When accidentally setting “kvm-arm.vgic_v4_enable=1” on a system that has no MSI controller device tree node and GICv4, it results a panic as “gic_domain” is NULL and the kernel attempts to access it.
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 Mem abort info: ESR = 0x0000000096000006
CPU: 1 UID: 0 PID: 295 Comm: lkvm-static Not tainted 7.1.0-rc4-ge3f15ad3970e #5 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 81402005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : __irq_domain_instantiate+0x1d4/0x578 lr : __irq_domain_instantiate+0x1cc/0x578
Set vLPI support to false at init time if the host has no ITS, so it propagates properly to kvm_vgic_global_state.has_gicv4.
From the CVE record · Linux
The Linux kernel can panic when kvm-arm.vgic_v4_enable=1 is set on a host with no ITS. The kernel attempts to access a NULL interrupt domain; the input does not describe an attacker path or authentication requirements.
Engineers running Linux kernels on hosts without an ITS should check whether kvm-arm.vgic_v4_enable=1 is set; affected versions are not specified.