CVE-2025-21785
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21785 is a vulnerability discovered in the Linux kernel's ARM64 cache information handling system. The issue was identified in February 2025 and affects the cache information array population mechanism in the ARM64 architecture. The vulnerability stems from a bounds checking issue where the code does not properly account for cache levels with separate data and instruction caches (NVD).

Technical details

The vulnerability exists in the ARM64 kernel's cacheinfo subsystem where the loop that detects and populates cache information has a bounds check on the array size but fails to account for cache levels with separate data/instructions cache. This could lead to an out-of-bounds write to the cacheinfo array. The issue originates from the initial implementation in commit 5d425c186537 ('arm64: kernel: add support for cpu cache information'). The CVSS v3.1 score for this vulnerability is 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 (NVD).

Impact

The vulnerability could allow an attacker to perform an out-of-bounds write to the cacheinfo array, potentially leading to memory corruption. This could affect system stability and potentially lead to privilege escalation due to the kernel-level nature of the vulnerability (NVD).

Mitigation and workarounds

A fix has been developed and committed to the Linux kernel that modifies the index increment logic to account for populated leaves instead of populated levels. The fix includes additional bounds checking before initializing cache information for separate data and instruction caches. The patch has been backported to multiple stable kernel versions (Kernel Patch).

Additional resources


SourceThis report was generated using AI

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