CVE-2025-22067 spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()
설명
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
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.12
해결 버전
- 6.12 미만
- 6.12.23 이상
- 6.13.11 이상
- 6.14.2 이상
참고 자료 4건
- git.kernel.org https://git.kernel.org/stable/c/645f1813fe0dc96381c36b834131e643b798fd73 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/7ba0847fa1c22e7801cebfe5f7b75aee4fae317e (새 창)
- git.kernel.org https://git.kernel.org/stable/c/c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/e50781bf7accc75883cb8a6a9921fb4e2fa8cca4 (새 창)