CVE-2025-21785·Kernel vulnerability
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).
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.4
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.4
Fixed in: 6.13.4
How to fix this CVE
Update your Linux kernel to version 6.13.4 or later to address an out-of-bounds memory write vulnerability in the ARM64 cache information detection routine. This vulnerability occurs when the kernel processes cache levels with separate data and instruction caches, potentially causing memory corruption. Apply this patch immediately if you are running kernel versions 6.13 through 6.13.3 on ARM64-based systems.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check current kernel version by running: uname -r (verify if it falls between 6.13 and 6.13.3)
- Step 2: Confirm ARM64 architecture with: uname -m (output should contain 'aarch64')
- Step 3: Check kernel logs for memory corruption indicators using: dmesg | grep -i 'memory\|corruption\|oops\|segfault' (look for recent kernel panics or errors related to cache detection)
- Step 4: After patching, verify the new kernel is running with: uname -r (should show 6.13.4 or later)
FAQ
What is CVE-2025-21785?
This vulnerability is an out-of-bounds write bug in the ARM64 kernel's cache information detection code that fails to properly account for processors with separate data and instruction caches at individual levels, potentially causing memory corruption and system instability.
Is CVE-2025-21785 being actively exploited?
No, there is no evidence of active exploitation in the wild according to CISA's Known Exploited Vulnerabilities catalog, and no public exploits are currently available.
What versions of Kernel are affected by CVE-2025-21785?
Linux kernel versions 6.13 through 6.13.3 running on ARM64 architectures are vulnerable; version 6.13.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2025-21785?
Run 'uname -r' to check your kernel version and 'uname -m' to verify ARM64 architecture; if the kernel version is between 6.13 and 6.13.3 and the system is ARM64-based, your system is vulnerable.
Does Defensia detect CVE-2025-21785?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2025-21785 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4371ac7b494e933fffee2bd6265d18d73c4f05aa
- https://git.kernel.org/stable/c/4ff25f0b18d1d0174c105e4620428bcdc1213860
- https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618
- https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5
- https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21785. Free for 1 server.
Get started free