Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-21991

CVE-2025-21991: Linux Kernel Buffer Overflow Vulnerability

CVE-2025-21991 is a buffer overflow vulnerability in the Linux kernel x86 microcode module affecting systems with CPU-less NUMA nodes. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21991 Overview

CVE-2025-21991 is an out-of-bounds memory access vulnerability in the Linux kernel's AMD microcode loading mechanism. The flaw exists in the load_microcode_amd() function, which incorrectly iterates over all NUMA nodes without checking whether each node has associated CPUs. On systems with CPU-less NUMA nodes (such as those with far memory configurations), this leads to accessing the cpu_info per-CPU array at an out-of-bounds index, potentially causing memory corruption during microcode updates.

Critical Impact

Local attackers with privileged access can trigger out-of-bounds memory access during AMD microcode updates on systems with CPU-less NUMA nodes, potentially corrupting kernel memory and causing system instability.

Affected Products

  • Linux Kernel (multiple versions prior to patch)
  • Linux Kernel 6.14-rc1 through 6.14-rc6
  • Systems with AMD processors and CPU-less NUMA nodes (far memory configurations)

Discovery Timeline

  • April 2, 2025 - CVE-2025-21991 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21991

Vulnerability Analysis

The vulnerability resides in the x86 microcode loading subsystem for AMD processors. The load_microcode_amd() function iterates over all NUMA nodes to determine which CPUs require microcode updates. However, the implementation fails to account for memory-only NUMA nodes that have no associated CPUs.

When the function encounters a CPU-less NUMA node, cpumask_of_node(nid) returns 0, and subsequently cpumask_first(0) returns CONFIG_NR_CPUS (typically 512). The code then attempts to access cpu_data(CONFIG_NR_CPUS), which reads from the cpu_info per-CPU array at an index that is exactly one position beyond the valid array bounds.

While the vulnerability requires local privileged access (microcode flashing is a privileged operation), it poses reliability concerns as it can corrupt adjacent kernel memory during legitimate microcode update operations. This is particularly problematic on enterprise systems with complex NUMA topologies that include far memory or memory-only nodes.

Root Cause

The root cause is improper validation of NUMA node CPU masks before accessing per-CPU data structures. The load_microcode_amd() function assumes all NUMA nodes have at least one CPU, but this assumption is violated on systems with memory-only NUMA nodes as documented in Documentation/admin-guide/mm/numaperf.rst. The code lacks a boundary check to skip nodes with empty CPU masks.

Attack Vector

Exploitation requires local access with elevated privileges (typically root or CAP_SYS_RAWIO). The attack vector involves triggering a microcode update on an AMD system that has CPU-less NUMA nodes. This can occur through:

  1. Writing to the /sys/devices/system/cpu/microcode/reload sysfs interface
  2. Triggering automatic microcode loading during system boot
  3. Manual microcode update operations via the kernel interface

The UBSAN (Undefined Behavior Sanitizer) stack trace from the vulnerability disclosure shows the following call chain leading to the out-of-bounds access:

Call Trace:
dump_stack
__ubsan_handle_out_of_bounds
load_microcode_amd
request_microcode_amd
reload_store
kernfs_fop_write_iter
vfs_write
ksys_write
do_syscall_64
entry_SYSCALL_64_after_hwframe

The fix modifies the loop to iterate only over NUMA nodes that have associated CPUs before checking whether the first CPU on each node requires a microcode update.

Detection Methods for CVE-2025-21991

Indicators of Compromise

  • UBSAN warnings in kernel logs showing "array-index-out-of-bounds" in arch/x86/kernel/cpu/microcode/amd.c
  • Kernel log messages indicating index 512 is out of range for type unsigned long[512]
  • Unexpected system instability or memory corruption following microcode update operations on AMD systems

Detection Strategies

  • Monitor kernel logs (dmesg) for UBSAN boundary violation warnings during microcode operations
  • Enable CONFIG_UBSAN_BOUNDS=y in kernel configuration to detect out-of-bounds accesses at runtime
  • Audit systems for NUMA configurations with memory-only nodes using numactl --hardware command

Monitoring Recommendations

  • Implement kernel log monitoring for UBSAN violations on AMD-based systems
  • Track microcode reload events on systems with complex NUMA topologies
  • Review system stability reports following AMD microcode updates

How to Mitigate CVE-2025-21991

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix
  • Avoid triggering manual microcode reloads on affected systems until patched
  • Verify NUMA topology on AMD systems to identify those at risk using numactl --hardware

Patch Information

The Linux kernel maintainers have released patches across multiple stable kernel branches. The fix modifies the microcode loading loop to only iterate over NUMA nodes that have associated CPUs, preventing the out-of-bounds access.

Official kernel patches are available from the following commits:

  • Kernel Commit 18b5d857c6496b78ead2fd10001b81ae32d30cac
  • Kernel Commit 488ffc0cac38f203979f83634236ee53251ce593
  • Kernel Commit 5ac295dfccb5b015493f86694fa13a0dde4d3665
  • Kernel Commit 985a536e04bbfffb1770df43c6470f635a6b1073

Debian users should consult the Debian LTS Security Announcements for distribution-specific updates.

Workarounds

  • Avoid initiating microcode reloads via the sysfs interface on vulnerable systems
  • If NUMA nodes with far memory are not required, consider reconfiguring the system to exclude memory-only NUMA nodes
  • Monitor systems for signs of memory corruption following any microcode update operations
bash
# Check NUMA topology for CPU-less nodes
numactl --hardware

# Verify kernel version for patch status
uname -r

# Monitor kernel logs for UBSAN violations
dmesg | grep -i ubsan

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-129
  • Technical References
  • Debian LTS Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update
  • Related CVEs
  • CVE-2026-31449: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31512: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31438: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31450: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English