CVE-2026-139362: irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()
In the Linux kernel, the following vulnerability has been resolved:
irqchip/mips-gic: Fix recursive acquisition of giclock in gicsetaffinity()
Commit 322a90638768 ("irqchip/mips-gic: Multi-cluster support") made gicsetaffinity() call gicsettype() when an interrupt's affinity is moved between clusters. gicsettype() takes giclock with rawspinlockirqsave(), but gicsetaffinity() holds giclock at that point, so the same raw spinlock is acquired twice, triggering a deadlock.
Split gicsettype() into a gicsettypelocked() helper that assumes giclock is already held. gicsettype() takes giclock and calls the helper, and gicsetaffinity() calls gicsettypelocked() directly, since it already holds giclock.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 322a90638768
Event History
Frequently Asked Questions
Which systems are exposed to the deadlock condition?
The condition applies to Linux kernel systems using the MIPS GIC multi-cluster support when an interrupt's affinity is moved between clusters. The affected path recursively acquires gic_lock during that transition.
How can remediation be verified without relying on a version number?
Verify that the kernel includes one of the referenced stable fixes: e29e24e7b462a4edb9cd8d16ee47db14d333210c, 980c2ec09368ca226feda42edf0b41376098c844, or 1bae25dcc6beb8b874f23601d2efa142ac4f9f36. The fix separates the locked type-setting logic so the affinity path does not acquire gic_lock a second time.