CVE-2025-21991
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21991 is a vulnerability discovered in the Linux kernel affecting the AMD microcode loading functionality. The issue was disclosed on April 2, 2025, and involves an out-of-bounds condition that occurs on systems with CPU-less NUMA nodes (NVD). The vulnerability affects multiple versions of the Linux kernel, including versions from 4.14.308 to 6.13.8.

Technical details

The vulnerability exists in the loadmicrocodeamd() function which iterates over all NUMA nodes and retrieves their CPU masks. The function unconditionally accesses per-CPU data for the first CPU of each mask, but some node CPU masks may be empty on systems with memory-only NUMA nodes. When cpumaskofnode(nid) returns 0 and cpumaskfirst(0) is CONFIGNRCPUS, the function attempts to access the cpuinfo per-CPU array at an out-of-bounds index (NVD). The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Impact

While the vulnerability requires privileged access for exploitation since microcode flashing is a privileged operation, it can potentially lead to memory corruption during microcode updates. This could result in system instability or reliability issues on affected systems with CPU-less NUMA nodes (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel by modifying the loop to only iterate over NUMA nodes that have CPUs before determining whether the first CPU on the respective node needs a microcode update. Multiple stable kernel versions have received the fix, and distribution vendors like Debian have released security updates to address this issue (Debian Security).

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-2025-40082N/AN/A
  • Linux KernelLinux Kernel
  • linux
NoNoOct 28, 2025
CVE-2025-40081N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoNoOct 28, 2025
CVE-2025-40080N/AN/A
  • Linux KernelLinux Kernel
  • kernel-devel-matched
NoNoOct 28, 2025
CVE-2025-40078N/AN/A
  • Linux KernelLinux Kernel
  • kernel-devel
NoNoOct 28, 2025
CVE-2025-40075N/AN/A
  • Linux KernelLinux Kernel
  • kernel-tools
NoNoOct 28, 2025

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