---
id: CVE-2025-21785
title: |-
  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 …
summary: |-
  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 …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.0, < 6.1.129'
  - 'linux_kernel >= 6.2, < 6.6.79'
  - 'linux_kernel >= 6.7, < 6.12.16'
  - 'linux_kernel >= 6.13, < 6.13.4'
  - linux_kernel = 6.14
patched:
  - linux_kernel 6.13.4
published: '2025-02-27'
updated: '2026-07-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21785'
references:
  - url: 'https://git.kernel.org/stable/c/4371ac7b494e933fffee2bd6265d18d73c4f05aa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4ff25f0b18d1d0174c105e4620428bcdc1213860'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/88a3e6afaf002250220793df99404977d343db14'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e4fde33107351ec33f1a64188612fbc6ca659284'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00273
epssPercentile: 0.19943
ingestedAt: '2026-07-30T06:53:09.924Z'
---

## Overview

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

- `linux_kernel >= 4.0, < 6.1.129`
- `linux_kernel >= 6.2, < 6.6.79`
- `linux_kernel >= 6.7, < 6.12.16`
- `linux_kernel >= 6.13, < 6.13.4`
- `linux_kernel = 6.14`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.13.4`
