irqchip/gic-v3-its: Don't enable interrupts in its_irq_set_vcpu_affinity()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
irqchip/gic-v3-its: Don't enable interrupts in its_irq_set_vcpu_affinity()
The following call-chain leads to enabling interrupts in a nested interrupt disabled section:
irq_set_vcpu_affinity() irq_get_desc_lock() raw_spin_lock_irqsave() <--- Disable interrupts its_irq_set_vcpu_affinity() guard(raw_spinlock_irq) <--- Enables interrupts when leaving the guard() irq_put_desc_unlock() <--- Warns because interrupts are enabled
This was broken in commit b97e8a2f7130, which replaced the original raw_spin_[un]lock() pair with guard(raw_spinlock_irq).
Fix the issue by using guard(raw_spinlock).
[ tglx: Massaged change log ]
From the CVE record · Linux
The Linux kernel’s GIC-v3 ITS interrupt-affinity path can enable interrupts inside a section where they should remain disabled, causing a warning when the lock is released. The input does not specify an attacker action or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels that include the affected GIC-v3 ITS code should check their kernel; affected versions are not specified.