CVE-2025-22067

published 16 Apr 2025 · updated 11 May 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 645f1813fe0dc96381c36b834131e643b798fd73, Kernel 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e, Kernel c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275 and 1 more.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.12, >=26d34fdc49712ddbd42b11102f5d9d78a0f42097 <645f1813fe0dc96381c36b834131e643b798fd73, >=26d34fdc49712ddbd42b11102f5d9d78a0f42097 <7ba0847fa1c22e7801cebfe5f7b75aee4fae317e, >=26d34fdc49712ddbd42b11102f5d9d78a0f42097 <c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275, >=26d34fdc49712ddbd42b11102f5d9d78a0f42097 <e50781bf7accc75883cb8a6a9921fb4e2fa8cca4645f1813fe0dc96381c36b834131e643b798fd73, 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e, c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275, e50781bf7accc75883cb8a6a9921fb4e2fa8cca4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22067 severity on Zeptric[![CVE-2025-22067](https://zeptric.io/badge/cve/CVE-2025-22067.svg)](https://zeptric.io/cve/CVE-2025-22067)