Bug 2360234 (CVE-2025-22067) - CVE-2025-22067 kernel: spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()
Summary: CVE-2025-22067 kernel: spi: cadence: Fix out-of-bounds array access in cdns_m...
Keywords:
Status: NEW
Alias: CVE-2025-22067
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:03 UTC by OSIDB Bzimport
Modified: 2025-05-16 14:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:03:49 UTC
In the Linux kernel, the following vulnerability has been resolved:

spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()

If requested_clk > 128, cdns_mrvl_xspi_setup_clock() iterates over the
entire cdns_mrvl_xspi_clk_div_list array without breaking out early,
causing 'i' to go beyond the array bounds.

Fix that by stopping the loop when it gets to the last entry, clamping
the clock to the minimum 6.25 MHz.

Fixes the following warning with an UBSAN kernel:

  vmlinux.o: warning: objtool: cdns_mrvl_xspi_setup_clock: unexpected end of section .text.cdns_mrvl_xspi_setup_clock

Comment 1 Avinash Hanwate 2025-04-17 12:01:04 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041609-CVE-2025-22067-dfb2@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.