CVE-2026-100030: spi: ch341: handle transfers without a TX or RX buffer

Published Nov 30, 2026
·
Updated

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

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

ch341transferone() unconditionally copies from trans->txbuf into the TX packet and hands trans->rxbuf to usbbulkmsg() 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 usbbulkmsg() 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 SPICONTROLLERMUSTTX and SPICONTROLLERMUSTRX so the SPI core fills in dummy buffers for half-duplex transfers.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set SPI_CONTROLLER_MUST_TX and SPI_CONTROLLER_MUST_RX so the SPI core fills in dummy buffers for half-duplex transfers.

    Linux kernel SPI CH341 driver SPI_CONTROLLER_MUST_TX and SPI_CONTROLLER_MUST_RX = set

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the crash?

A CH341 SPI transfer must be submitted with either no transmit buffer or no receive buffer. A missing TX buffer causes a kernel crash during the copy into the transmit packet, while a missing RX buffer can cause received data to be written to address zero.

2

Are half-duplex SPI transfers affected?

Yes. The SPI core permits half-duplex transfers with one buffer set to NULL, but the CH341A clocks data in both directions for every transfer and cannot disable either direction. The fix marks the controller as requiring both TX and RX buffers so the SPI core supplies dummy buffers when needed.

3

What can be done before the fix is applied?

Avoid issuing CH341 SPI transfers that omit either the TX or RX buffer. Callers should provide valid buffers for both directions, using a dummy transmit or receive buffer where the application only needs one direction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203