CVE-2025-21785: arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
In the Linux kernel, the following vulnerability has been resolved:
arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
The loop that detects/populates cache information already has a bounds
check on the array size but does not account for cache levels with
separate data/instructions cache. Fix this by incrementing the index
for any populated leaf (instead of any populated level).
Security readout for executives and security teams
Plain-English summary
Affected 64-bit Arm Linux systems can write beyond an internal kernel array while discovering CPU cache information. The CVSS assessment indicates that a local, low-privileged user could potentially cause serious confidentiality, integrity, or availability impact. The supplied sources do not establish practical exploitability or active attacks.
Executive priority
Treat this as a high-priority arm64 kernel patching issue, especially on shared systems. It is not supported as an emergency internet-wide exploitation event. Expedite normal kernel maintenance, confirm reboot completion, and escalate systems allowing untrusted local workloads.
Technical view
The arm64 cacheinfo population loop checked array bounds but advanced its index per cache level rather than per populated cache leaf. Hardware exposing separate instruction and data caches could therefore produce more entries than accounted for, causing an out-of-bounds kernel write. Stable fixes increment the index for every populated leaf.
Likely exposure
Exposure is limited to affected Linux kernels on arm64 systems, particularly hardware with separate instruction and data caches. The supplied affected-version data is not sufficiently clear for reliable package-level conclusions. Internet reachability alone is not the primary factor because the CVSS vector requires local, low-privileged access.
Exploitation context
The CVSS 3.1 vector is local, low complexity, low privilege, and requires no user interaction, with potentially high impact across confidentiality, integrity, and availability. CISA KEV status is false in the supplied bundle, and no cited source establishes active exploitation, a public exploit, or demonstrated attack reliability.
Researcher notes
The defect is an array-accounting mismatch involving cache leaves versus cache levels. Separate instruction and data caches can consume multiple leaves at one level. The supplied commits show stable-branch remediation, but the bundle does not prove exploit primitives, trigger reliability, affected hardware breadth, or observed exploitation.
Mitigation direction
Apply the distribution-supported kernel update containing the relevant stable fix.
Reboot affected systems so the corrected kernel is actually running.
Prioritize shared arm64 hosts where untrusted or low-privileged users can execute code.
Check Linux distribution security guidance when package-level fixed versions are unclear.
Validation and detection
Inventory arm64 systems and record installed and currently running kernel versions.
Compare each kernel package against its distribution advisory and stable fix lineage.
Confirm systems were rebooted into the updated kernel after patching.
Review affected hosts for unexplained kernel crashes or memory-corruption reports.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-21785 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
11Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.