spi: ch341: handle transfers without a TX or RX buffer

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

spi: ch341: handle transfers without a TX or RX buffer

ch341_transfer_one() unconditionally copies from trans->tx_buf into the TX packet and hands trans->rx_buf to usb_bulk_msg() for the readback.

The SPI core allows half-duplex transfers where either of the buffers is NULL, so a transfer without TX data crashes the kernel on the memcpy and a transfer without RX data makes usb_bulk_msg() store the received data at address 0.

The CH341A clocks data in both directions on every transfer; there is no mode to disable a direction. Set SPI_CONTROLLER_MUST_TX and SPI_CONTROLLER_MUST_RX so the SPI core fills in dummy buffers for half-duplex transfers.

ProductVersions
Linux Linux8846739f52afa07e63395c80227dc544f54bd7b1 to before 2481f9585c843728cffe5d75d0104552e834f0d1 Affected8846739f52afa07e63395c80227dc544f54bd7b1 to before 90cc16ecf4a70aad6f8b3ea5af8ec38064b03428 Affected8846739f52afa07e63395c80227dc544f54bd7b1 to before f1e1d3a1014aee93bc33e8cb4994123684f1cf38 Affected8846739f52afa07e63395c80227dc544f54bd7b1 to before 84182c48999f856c3865e4a537c244f9569c9f6c Affected
Linux Linux6.11 Affectedbefore 6.11 Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.