CVE-2025-22067
spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()
CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th
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
| Vendor | linux |
| Product | linux |
| Ecosystems | |
| Industries | Technology |
| Published | Apr 16, 2025 |
| Last Updated | May 11, 2026 |
Stay Ahead of the Next One
Get instant alerts for linux linux
Be the first to know when new high vulnerabilities affecting linux linux are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Linux / Linux
26d34fdc49712ddbd42b11102f5d9d78a0f42097 < e50781bf7accc75883cb8a6a9921fb4e2fa8cca4 26d34fdc49712ddbd42b11102f5d9d78a0f42097 < c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275 26d34fdc49712ddbd42b11102f5d9d78a0f42097 < 645f1813fe0dc96381c36b834131e643b798fd73 26d34fdc49712ddbd42b11102f5d9d78a0f42097 < 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e
Linux / Linux
6.12
References
git.kernel.org: https://git.kernel.org/stable/c/e50781bf7accc75883cb8a6a9921fb4e2fa8cca4 git.kernel.org: https://git.kernel.org/stable/c/c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275 git.kernel.org: https://git.kernel.org/stable/c/645f1813fe0dc96381c36b834131e643b798fd73 git.kernel.org: https://git.kernel.org/stable/c/7ba0847fa1c22e7801cebfe5f7b75aee4fae317e