lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025041609-CVE-2025-22067-dfb2@gregkh>
Date: Wed, 16 Apr 2025 16:12:38 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-22067: spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()

Description
===========

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

The Linux kernel CVE team has assigned CVE-2025-22067 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.12 with commit 26d34fdc49712ddbd42b11102f5d9d78a0f42097 and fixed in 6.12.23 with commit e50781bf7accc75883cb8a6a9921fb4e2fa8cca4
	Issue introduced in 6.12 with commit 26d34fdc49712ddbd42b11102f5d9d78a0f42097 and fixed in 6.13.11 with commit c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275
	Issue introduced in 6.12 with commit 26d34fdc49712ddbd42b11102f5d9d78a0f42097 and fixed in 6.14.2 with commit 645f1813fe0dc96381c36b834131e643b798fd73
	Issue introduced in 6.12 with commit 26d34fdc49712ddbd42b11102f5d9d78a0f42097 and fixed in 6.15-rc1 with commit 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-22067
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/spi/spi-cadence-xspi.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/e50781bf7accc75883cb8a6a9921fb4e2fa8cca4
	https://git.kernel.org/stable/c/c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275
	https://git.kernel.org/stable/c/645f1813fe0dc96381c36b834131e643b798fd73
	https://git.kernel.org/stable/c/7ba0847fa1c22e7801cebfe5f7b75aee4fae317e

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ