Skip to contentSkip to conversation

CVE-2026-31560: spi: spi-dw-dma: fix print error log when wait finish transaction

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

In the Linux kernel, the following vulnerability has been resolved:

spi: spi-dw-dma: fix print error log when wait finish transaction

If an error occurs, the device may not have a current message. In this case, the system will crash.

In this case, it's better to use dev from the struct ctlr (struct spi_controller*).

The Linux kernel CVE team has assigned CVE-2026-31560 to this issue.

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

	Fixed in 6.19.11 with commit 184f5aaf72f1f1c73e66bae0b8d28e81c2f2a72f
	Fixed in 7.0 with commit 3b46d61890632c8f8b117147b6923bff4b42ccb7

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-2026-31560

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-dw-dma.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/184f5aaf72f1f1c73e66bae0b8d28e81c2f2a72f
	https://git.kernel.org/stable/c/3b46d61890632c8f8b117147b6923bff4b42ccb7