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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:25.938Z
- Modified: 2026-10-15T22:18:08.713Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 5d425c18653731af62831d30a4fa023d532657a9 before 4371ac7b494e933fffee2bd6265d18d73c4f05aa; from 5d425c18653731af62831d30a4fa023d532657a9 before e4fde33107351ec33f1a64188612fbc6ca659284; from 5d425c18653731af62831d30a4fa023d532657a9 before 88a3e6afaf002250220793df99404977d343db14; from 5d425c18653731af62831d30a4fa023d532657a9 before 4ff25f0b18d1d0174c105e4620428bcdc1213860; from 5d425c18653731af62831d30a4fa023d532657a9 before ab90894f33c15b14c1cee6959ab6c8dcb09127f8; from 5d425c18653731af62831d30a4fa023d532657a9 before 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; from 5d425c18653731af62831d30a4fa023d532657a9 before 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; from 5d425c18653731af62831d30a4fa023d532657a9 before 875d742cf5327c93cba1f11e12b08d3cce7a88d2; 4.0 (not affected: before 4.0; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.79 up to 6.6.*; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.0 before 6.1.129; from 6.2 before 6.6.79; from 6.7 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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> (mailing-list, patch)
- <https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8> (mailing-list, patch)
- <https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5> (mailing-list, patch)
- <https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618> (mailing-list, patch)
- <https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2> (mailing-list, patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2025-21785](https://www.cve.org/CVERecord?id=CVE-2025-21785), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-21785](https://nvd.nist.gov/vuln/detail/CVE-2025-21785), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-21785 · Whole record: https://cve.day/CVE-2025-21785.json · Rebuilt by cve.day 2026-11-25T22:58:54.563Z
