CVE-2025-21785
arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
Mitigation
- Upgrade Linux to 875d742cf5327c93cba1f11e12b08d3cce7a88d2 or later.
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
Vulnerability facts
- Affected
- Linux >= 5d425c18653731af62831d30a4fa023d532657a9, < 4371ac7b494e933fffee2bd6265d18d73c4f05aa; >= 5d425c18653731af62831d30a4fa023d532657a9, < e4fde33107351ec33f1a64188612fbc6ca659284; >= 5d425c18653731af62831d30a4fa023d532657a9, < 88a3e6afaf002250220793df99404977d343db14; >= 5d425c18653731af62831d30a4fa023d532657a9, < 4ff25f0b18d1d0174c105e4620428bcdc1213860; >= 5d425c18653731af62831d30a4fa023d532657a9, < ab90894f33c15b14c1cee6959ab6c8dcb09127f8; >= 5d425c18653731af62831d30a4fa023d532657a9, < 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; >= 5d425c18653731af62831d30a4fa023d532657a9, < 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; >= 5d425c18653731af62831d30a4fa023d532657a9, < 875d742cf5327c93cba1f11e12b08d3cce7a88d2; Linux 4.0
- Fixed in
- Linux 4371ac7b494e933fffee2bd6265d18d73c4f05aa, Linux 88a3e6afaf002250220793df99404977d343db14, Linux 4ff25f0b18d1d0174c105e4620428bcdc1213860, Linux 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5, Linux 67b99a2b5811df4294c2ad50f9bff3b6a08bd618, Linux 875d742cf5327c93cba1f11e12b08d3cce7a88d2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- CWE
- CWE-787
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5d425c18653731af62831d30a4fa023d532657a9, < 4371ac7b494e933fffee2bd6265d18d73c4f05aa; >= 5d425c18653731af62831d30a4fa023d532657a9, < e4fde33107351ec33f1a64188612fbc6ca659284; >= 5d425c18653731af62831d30a4fa023d532657a9, < 88a3e6afaf002250220793df99404977d343db14; >= 5d425c18653731af62831d30a4fa023d532657a9, < 4ff25f0b18d1d0174c105e4620428bcdc1213860; >= 5d425c18653731af62831d30a4fa023d532657a9, < ab90894f33c15b14c1cee6959ab6c8dcb09127f8; >= 5d425c18653731af62831d30a4fa023d532657a9, < 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5; >= 5d425c18653731af62831d30a4fa023d532657a9, < 67b99a2b5811df4294c2ad50f9bff3b6a08bd618; >= 5d425c18653731af62831d30a4fa023d532657a9, < 875d742cf5327c93cba1f11e12b08d3cce7a88d2 | — | cvelist |
| Linux | 4.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- 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
Other
- https://git.kernel.org/stable/c/4371ac7b494e933fffee2bd6265d18d73c4f05aa
- https://git.kernel.org/stable/c/e4fde33107351ec33f1a64188612fbc6ca659284
- https://git.kernel.org/stable/c/88a3e6afaf002250220793df99404977d343db14
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
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.