arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
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).
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.235, 5.15.179, 5.4.291, 6.1.129, 6.12.16, 6.13.4, 6.6.79
- CVEs
- CVE-2025-21785
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 18:09 UTC · Revision 1
Source evidence
arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
core-osv · Original sourcePublished 27 Feb 2025, 02:18 UTC
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).
osv:CVE-2025-21785
Kernel
Fixed versions: 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.79, 6.12.16, 6.13.4
Complete source record
{
"id": "57b7491592eed0e94e3e13b658b07a400e54f7816658c99598b9baa6f105e1f5",
"url": "https://osv.dev/vulnerability/CVE-2025-21785",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array",
"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 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).",
"evidence": "osv:CVE-2025-21785",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.291",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.235",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.179",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.129",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.79",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-21785",
"aliases": [
"CVE-2025-21785"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5d425c18653731af62831d30a4fa023d532657a9"
},
{
"fixed": "4371ac7b494e933fffee2bd6265d18d73c4f05aa"
},
{
"fixed": "e4fde33107351ec33f1a64188612fbc6ca659284"
},
{
"fixed": "88a3e6afaf002250220793df99404977d343db14"
},
{
"fixed": "4ff25f0b18d1d0174c105e4620428bcdc1213860"
},
{
"fixed": "ab90894f33c15b14c1cee6959ab6c8dcb09127f8"
},
{
"fixed": "715eb1af64779e1b1aa0a7b2ffb81414d9f708e5"
},
{
"fixed": "67b99a2b5811df4294c2ad50f9bff3b6a08bd618"
},
{
"fixed": "875d742cf5327c93cba1f11e12b08d3cce7a88d2"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21785.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "5.4.291"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.235"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.179"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.129"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.79"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21785.json"
}
}
],
"modified": "2026-10-28T02:30:48.059116320Z",
"provider": "osv",
"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",
"https://git.kernel.org/stable/c/88a3e6afaf002250220793df99404977d343db14",
"https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8",
"https://git.kernel.org/stable/c/e4fde33107351ec33f1a64188612fbc6ca659284",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21785.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21785",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21785.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21785",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515850,
"published_at": "2025-02-27T02:18:25.938+00:00"
}