# CVE-2025-21785: arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-02-27T02:18:25.938Z
- **Modified:** 2026-10-15T22:18:08.713Z

## Who should check

- Anyone running Linux \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4371ac7b494e933fffee2bd6265d18d73c4f05aa; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< e4fde33107351ec33f1a64188612fbc6ca659284; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 88a3e6afaf002250220793df99404977d343db14; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4ff25f0b18d1d0174c105e4620428bcdc1213860; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< ab90894f33c15b14c1cee6959ab6c8dcb09127f8; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 875d742cf5327c93cba1f11e12b08d3cce7a88d2
- Anyone running Linux 4.0

## Description

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).

## Affected and fixed versions

- Linux: \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4371ac7b494e933fffee2bd6265d18d73c4f05aa; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< e4fde33107351ec33f1a64188612fbc6ca659284; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 88a3e6afaf002250220793df99404977d343db14; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4ff25f0b18d1d0174c105e4620428bcdc1213860; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< ab90894f33c15b14c1cee6959ab6c8dcb09127f8; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 875d742cf5327c93cba1f11e12b08d3cce7a88d2 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 875d742cf5327c93cba1f11e12b08d3cce7a88d2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21785. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21785.md
Affected: Linux >= 5d425c18653731af62831d30a4fa023d532657a9, < 4371ac7b494e933fffee2bd6265d18d73c4f05aa; >= 5d425c18653731af62831d30a4fa023d532657a9, < e4fde33107351ec33f1a64188612fbc6ca659284; >= 5d425c18653731af62831d30a4fa023d532657a9, < 88a3e6afaf002250220793df99404977d343db14; >= 5d425c18653731af62831d3…
Fixed in: Linux 4371ac7b494e933fffee2bd6265d18d73c4f05aa, Linux 88a3e6afaf002250220793df99404977d343db14, Linux 4ff25f0b18d1d0174c105e4620428bcdc1213860, Linux 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5, Linux 67b99a2b5811df4294c2ad50f9bff3b6a08bd618, Linux 875d742cf5327c93cba1f11e12b08d3cce7a88d2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21785 being exploited?

There is no confirmed exploitation: CVE-2025-21785 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21785?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21785?

Linux \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4371ac7b494e933fffee2bd6265d18d73c4f05aa; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< e4fde33107351ec33f1a64188612fbc6ca659284; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 88a3e6afaf002250220793df99404977d343db14; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 4ff25f0b18d1d0174c105e4620428bcdc1213860; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< ab90894f33c15b14c1cee6959ab6c8dcb09127f8; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; \>= 5d425c18653731af62831d30a4fa023d532657a9, \< 875d742cf5327c93cba1f11e12b08d3cce7a88d2; Linux 4.0.

### Is there a fix for CVE-2025-21785?

Yes. Fixed in Linux 4371ac7b494e933fffee2bd6265d18d73c4f05aa, Linux 88a3e6afaf002250220793df99404977d343db14, Linux 4ff25f0b18d1d0174c105e4620428bcdc1213860, Linux 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5, Linux 67b99a2b5811df4294c2ad50f9bff3b6a08bd618, Linux 875d742cf5327c93cba1f11e12b08d3cce7a88d2. Upgrade Linux to 875d742cf5327c93cba1f11e12b08d3cce7a88d2 or later.

### How do I check if I'm affected by CVE-2025-21785?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4ff25f0b18d1d0174c105e4620428bcdc1213860>
- patch: <https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8>
- patch: <https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5>
- patch: <https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618>
- patch: <https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2>
- other: <https://git.kernel.org/stable/c/4371ac7b494e933fffee2bd6265d18d73c4f05aa>
- other: <https://git.kernel.org/stable/c/e4fde33107351ec33f1a64188612fbc6ca659284>
- other: <https://git.kernel.org/stable/c/88a3e6afaf002250220793df99404977d343db14>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21785>

HTML: <https://flawdb.com/CVE-2025-21785> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21785>
