Bug 2348630 (CVE-2025-21785)

Summary: CVE-2025-21785 kernel: arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. During processor cache detection on ARM64 systems featuring separate instruction and data caches, the kernel fails to properly account for cache entries against allocated array limits, resulting in an out-of-bounds memory write. A local attacker could leverage this vulnerability to cause memory corruption, potentially leading to system instability or a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-27 03:05:44 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).

Comment 2 Avinash Hanwate 2025-02-28 03:35:58 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022608-CVE-2025-21785-184c@gregkh/T

Comment 3 errata-xmlrpc 2025-03-25 00:07:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:3127 https://access.redhat.com/errata/RHSA-2025:3127

Comment 4 errata-xmlrpc 2025-03-25 00:14:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:3128 https://access.redhat.com/errata/RHSA-2025:3128

Comment 5 errata-xmlrpc 2025-03-26 01:12:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:3209 https://access.redhat.com/errata/RHSA-2025:3209

Comment 6 errata-xmlrpc 2025-03-26 01:13:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2025:3214 https://access.redhat.com/errata/RHSA-2025:3214

Comment 7 errata-xmlrpc 2025-03-26 01:18:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

Via RHSA-2025:3207 https://access.redhat.com/errata/RHSA-2025:3207

Comment 8 errata-xmlrpc 2025-03-26 01:32:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

Via RHSA-2025:3211 https://access.redhat.com/errata/RHSA-2025:3211

Comment 9 errata-xmlrpc 2025-03-26 01:53:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2025:3212 https://access.redhat.com/errata/RHSA-2025:3212

Comment 10 errata-xmlrpc 2025-03-26 01:57:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:3213 https://access.redhat.com/errata/RHSA-2025:3213

Comment 11 errata-xmlrpc 2025-03-26 02:05:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:3208 https://access.redhat.com/errata/RHSA-2025:3208

Comment 12 errata-xmlrpc 2025-03-26 02:06:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2025:3216 https://access.redhat.com/errata/RHSA-2025:3216

Comment 13 errata-xmlrpc 2025-03-26 02:12:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:3215 https://access.redhat.com/errata/RHSA-2025:3215

Comment 14 errata-xmlrpc 2025-03-26 14:00:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:3264 https://access.redhat.com/errata/RHSA-2025:3264

Comment 15 errata-xmlrpc 2025-03-26 14:03:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:3260 https://access.redhat.com/errata/RHSA-2025:3260

Comment 21 errata-xmlrpc 2025-11-11 08:02:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:20095 https://access.redhat.com/errata/RHSA-2025:20095