CVE-2021-46997
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability was discovered related to the GIC (Generic Interrupt Controller) priority masking during kernel entry on ARM64 systems. The issue affects Linux kernel versions from 5.10 up to (excluding) 5.10.38, 5.11 up to (excluding) 5.11.22, and 5.12 up to (excluding) 5.12.5. The vulnerability was discovered when booting a kernel with 'irqchip.gicv3_pseudo_nmi=1' parameter (NVD).

Technical details

The vulnerability stems from inconsistent handling of the PMR (Priority Mask Register) during exception entry. Early in the entry sequence, lockdep_hardirqs_off() is called to inform lockdep that interrupts have been masked, but PMR_EL1 is not affected by exception entry. This leads to a situation where the PMR can indicate interrupts are unmasked even though they are masked by DAIF. When DEBUG_LOCKDEP is selected, this causes lockdep_hardirqs_off() to trigger a warning before GIC_PRIO_PSR_I_SET is set in any exception entry paths (Kernel Patch).

Impact

The vulnerability has a CVSS v3.1 Base Score of 5.5 (Medium) with vector: AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. While this issue primarily affects system stability and debugging capabilities, it could potentially lead to system instability or incorrect interrupt handling behavior (NVD).

Exploitability

The vulnerability requires local access and can only be triggered when booting the kernel with specific parameters (irqchip.gicv3_pseudo_nmi=1). It primarily manifests during kernel debugging scenarios with DEBUG_LOCKDEP enabled (NVD).

Mitigation and workarounds

The issue has been fixed by consistently setting GIC_PRIO_PSR_I_SET during exception entry to ensure kernel code sees a consistent environment. The fix includes updating local_daif_inherit() to handle PMR properly and removing special cases in the entry code. Users should upgrade to Linux kernel versions 5.10.38, 5.11.22, or 5.12.5 or later (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management