PT-2021-8271 · Linux+2 · Linux Kernel+2
He Ying
·
Published
2021-04-23
·
Updated
2024-12-11
·
CVE-2021-46961
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions 4.19.95.aarch64 and earlier
Description
The vulnerability is related to the handling of spurious interrupts in the Linux kernel. When a spurious interrupt occurs, the kernel should not enable interrupts, but in this case, it does, leading to a nested NMI situation. This can cause a kernel panic and potentially allow an attacker to crash the system. The issue is caused by a 'BUG ON(in nmi())' in nmi enter(). Moving the handling of spurious interrupts as early as possible in the GICv3 handler fixes this issue.
Recommendations
To resolve this issue, update the Linux kernel to a version that includes the fix for this vulnerability. Specifically, for Linux kernel version 4.19.95.aarch64, update to a newer version that includes the patch for irqchip/gic-v3: Do not enable irqs when handling spurious interrupts. As a temporary workaround, consider disabling the
nmi enter() function until a patch is available. However, this is not a recommended long-term solution, as it may have unintended consequences on system stability and performance.Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Linux Kernel
Suse