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-21785

CVE-2025-21785: Linux Kernel Buffer Overflow Vulnerability

CVE-2025-21785 is a buffer overflow vulnerability in the Linux Kernel's arm64 cacheinfo that causes out-of-bounds writes. This article covers the technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-21785 Overview

CVE-2025-21785 is an out-of-bounds write vulnerability discovered in the Linux kernel's arm64 architecture cacheinfo subsystem. The vulnerability exists in the cache information detection and population loop, which fails to properly account for cache levels that have separate data and instruction caches. This boundary checking flaw allows writing beyond the allocated cacheinfo array when processing systems with split L1 caches.

Critical Impact

Local attackers with low privileges can exploit this out-of-bounds write to potentially achieve code execution, corrupt kernel memory, or cause system instability on arm64-based Linux systems.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.14-rc1
  • Linux Kernel 6.14-rc2

Discovery Timeline

  • February 27, 2025 - CVE-2025-21785 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21785

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-bounds Write) and affects the arm64 cacheinfo subsystem in the Linux kernel. The flaw occurs during the kernel's cache topology enumeration process, which runs during system initialization on arm64 platforms.

When the kernel detects cache hierarchy information, it iterates through cache levels to populate a cacheinfo array. The existing bounds check protects against exceeding the array size based on the number of cache levels detected. However, the logic fails to account for scenarios where a single cache level contains both separate instruction and data caches (split cache architecture), which requires two array entries rather than one.

On arm64 systems with split L1 caches (separate L1 instruction cache and L1 data cache), the loop may write beyond the allocated array bounds. This memory corruption can lead to kernel data structure corruption, privilege escalation, or system crashes depending on what adjacent memory is overwritten.

Root Cause

The root cause is an incorrect index increment strategy in the cacheinfo population loop. The original code incremented the array index once per cache level detected, regardless of whether that level contained a unified cache or separate instruction/data caches. The fix modifies the loop to increment the index for each populated leaf (individual cache entry) rather than for each populated cache level, ensuring the array bounds are properly respected.

Attack Vector

This is a local attack vector vulnerability that requires low-privilege access to the system. An attacker with local access to an arm64 Linux system running a vulnerable kernel version could potentially trigger this condition through interactions with the cacheinfo sysfs interface or during specific kernel operations involving cache topology enumeration. The vulnerability requires no user interaction and operates within a local scope, potentially impacting confidentiality, integrity, and availability of the system.

Detection Methods for CVE-2025-21785

Indicators of Compromise

  • Unexpected kernel panics or crashes on arm64 systems, particularly during boot or when accessing /sys/devices/system/cpu/cpu*/cache/ entries
  • Kernel log messages indicating memory corruption or invalid memory access in cacheinfo-related functions
  • System instability on arm64 platforms with split L1 cache configurations
  • Anomalous behavior during CPU hotplug operations on affected arm64 systems

Detection Strategies

  • Monitor kernel logs for oops or panic messages referencing cacheinfo, cache_leaves_are_shared, or related arm64 cache functions
  • Deploy kernel debugging tools such as KASAN (Kernel Address Sanitizer) to detect out-of-bounds memory accesses
  • Audit running kernel versions against known patched versions to identify vulnerable systems
  • Use SentinelOne's Linux agent to monitor for exploitation attempts and anomalous kernel behavior

Monitoring Recommendations

  • Enable kernel debugging features including CONFIG_KASAN in development and testing environments to catch out-of-bounds writes
  • Implement centralized logging for kernel messages across arm64 infrastructure to identify patterns of exploitation attempts
  • Monitor for unusual access patterns to cache sysfs entries that could indicate exploitation attempts
  • Deploy runtime kernel integrity monitoring to detect memory corruption in kernel data structures

How to Mitigate CVE-2025-21785

Immediate Actions Required

  • Update affected Linux kernel installations to patched versions as identified in the vendor advisories
  • Prioritize patching arm64-based systems, including servers, embedded devices, and container hosts
  • For systems that cannot be immediately patched, consider restricting local user access to minimize attack surface
  • Review system logs for any evidence of exploitation prior to patching

Patch Information

Linux kernel maintainers have released patches addressing this vulnerability across multiple stable branches. The fix modifies the cacheinfo population loop to correctly increment the array index for each populated cache leaf rather than each cache level, preventing the out-of-bounds write condition.

Patched commits are available from the official kernel git repository:

  • Kernel Patch 4ff25f0b18d1
  • Kernel Patch 67b99a2b5811
  • Kernel Patch 715eb1af6477
  • Kernel Patch 875d742cf532
  • Kernel Patch ab90894f33c1

Debian users should reference the Debian LTS Security Announcements for distribution-specific patched packages.

Workarounds

  • Limit local system access to trusted users only, as exploitation requires local privileges
  • Consider disabling non-essential services on arm64 systems to reduce attack surface until patching is complete
  • Implement mandatory access controls (SELinux, AppArmor) to restrict access to sensitive kernel interfaces
  • Monitor and alert on suspicious local user activity targeting kernel cache interfaces
bash
# Check current kernel version on arm64 systems
uname -r

# Verify arm64 architecture
uname -m

# Check for available kernel updates on Debian-based systems
apt update && apt list --upgradable | grep linux-image

# Apply kernel updates
apt upgrade linux-image-$(uname -r | cut -d- -f1-2)-arm64

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.04%

  • 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-787
  • Technical References
  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Debian LTS Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux 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