CVE-2026-139362

irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()

Commit 322a90638768 ("irqchip/mips-gic: Multi-cluster support")
made gic_set_affinity() call gic_set_type() when an interrupt's
affinity is moved between clusters. gic_set_type() takes gic_lock with
raw_spin_lock_irqsave(), but gic_set_affinity() holds gic_lock at that
point, so the same raw spinlock is acquired twice, triggering a deadlock.

Split gic_set_type() into a gic_set_type_locked() helper that assumes
gic_lock is already held. gic_set_type() takes gic_lock and calls the
helper, and gic_set_affinity() calls gic_set_type_locked() directly,
since it already holds gic_lock.

Analysis

AI-generated

Technical impact

A Linux kernel driver for MIPS General‑purpose Interrupt Controller (GIC) had a logic error that allowed the same raw spinlock to be requested twice in the same context. When an interrupt was moved between clusters, gic_set_affinity() held the gic_lock and called gic_set_type(), which attempted to acquire gic_lock again. The raw spinlock cannot be recursively acquired, so the second acquisition blocked forever and caused the kernel to deadlock. This deadlock prevents normal interrupt handling and can bring the entire system to a halt, effectively denying service to all users on the machine. The flaw does not provide any code execution or privilege escalation and is limited to kernel mode.

Affected Systems

All Linux kernel builds older than commit 322a90638768 that enable multi‑cluster GIC support are vulnerable. This includes common distribution kernels that expose the multi‑cluster configuration without the patch. The vulnerability is present only in systems that compile the affected irqchip/mips‑gic driver with multi‑cluster support enabled.

Risk and Exploitability

The risk is a local denial‑of‑service: an attacker with the ability to trigger the vulnerable code path, such as by generating interrupts or manipulating hardware that causes re‑assignment of interrupt affinity, could stall the kernel. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so there is no known widespread exploitation. However, since the bug resides in kernel code, any local attacker could precipitate the deadlock by exploiting normal system functionality. The CVSS score is not specified in the data, but the impact is significant due to potential system downtime.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes commit 322a90638768 or later
  • Reboot so the updated kernel takes effect
  • If an immediate kernel upgrade is impossible, rebuild the kernel with CONFIG_IRQCHIP_MULTI_CLUSTER disabled to avoid the recursive lock or apply a local patch that separates the lock acquisition logic from gic_set_type()

Generated by OpenCVE AI on December 1, 2026 at 08:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-764
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-626
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity() Commit 322a90638768 ("irqchip/mips-gic: Multi-cluster support") made gic_set_affinity() call gic_set_type() when an interrupt's affinity is moved between clusters. gic_set_type() takes gic_lock with raw_spin_lock_irqsave(), but gic_set_affinity() holds gic_lock at that point, so the same raw spinlock is acquired twice, triggering a deadlock. Split gic_set_type() into a gic_set_type_locked() helper that assumes gic_lock is already held. gic_set_type() takes gic_lock and calls the helper, and gic_set_affinity() calls gic_set_type_locked() directly, since it already holds gic_lock.
Title irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-626

    Null Byte Interaction Error (Poison Null Byte)

  • CWE-764

    Multiple Locks of a Critical Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM