---
id: CVE-2026-31560
title: 'spi: spi-dw-dma: fix print error log when wait finish transaction'
summary: |-
  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.

  …
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e <
    bac13309339b6f1ac02e6e53ebc75cf61483c396
  - >-
    Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e <
    b8188ff3cfaa5621212b08473488cdbe41f86531
  - >-
    Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e <
    aae4a47073b12c23eb1d2c5401bda442fbe27bd1
  - >-
    Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e <
    184f5aaf72f1f1c73e66bae0b8d28e81c2f2a72f
  - >-
    Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e <
    3b46d61890632c8f8b117147b6923bff4b42ccb7
  - Linux 5.8
published: '2026-04-24'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:39:28.803Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-31560'
references:
  - url: 'https://git.kernel.org/stable/c/bac13309339b6f1ac02e6e53ebc75cf61483c396'
  - url: 'https://git.kernel.org/stable/c/b8188ff3cfaa5621212b08473488cdbe41f86531'
  - url: 'https://git.kernel.org/stable/c/aae4a47073b12c23eb1d2c5401bda442fbe27bd1'
  - url: 'https://git.kernel.org/stable/c/184f5aaf72f1f1c73e66bae0b8d28e81c2f2a72f'
  - url: 'https://git.kernel.org/stable/c/3b46d61890632c8f8b117147b6923bff4b42ccb7'
tags:
  - cve.org
epss: 0.00122
epssPercentile: 0.01815
ingestedAt: '2026-10-21T12:48:53.662Z'
---

## Overview

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*).

## Affected

- `Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e < bac13309339b6f1ac02e6e53ebc75cf61483c396`
- `Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e < b8188ff3cfaa5621212b08473488cdbe41f86531`
- `Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e < aae4a47073b12c23eb1d2c5401bda442fbe27bd1`
- `Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e < 184f5aaf72f1f1c73e66bae0b8d28e81c2f2a72f`
- `Linux >= bdbdf0f06337d3661b64c0288c291cb06624065e < 3b46d61890632c8f8b117147b6923bff4b42ccb7`
- `Linux 5.8`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
