Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-100030

published high CVSS 3.1 · 7.8

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

Published
30 Nov 2026, 13:23:14 UTC
Updated
01 Dec 2026, 05:39:39 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8846739f52afa07e63395c80227dc544f54bd7b1 to < 2481f9585c843728cffe5d75d0104552e834f0d1 · 8846739f52afa07e63395c80227dc544f54bd7b1 to < 90cc16ecf4a70aad6f8b3ea5af8ec38064b03428 · 8846739f52afa07e63395c80227dc544f54bd7b1 to < f1e1d3a1014aee93bc33e8cb4994123684f1cf38 · 8846739f52afa07e63395c80227dc544f54bd7b1 to < 84182c48999f856c3865e4a537c244f9569c9f6c · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The NULL-buffer transfer that ch341_transfer_one() mishandles comes from a local process via spidev_read()/spidev_write() or SPI_IOC_MESSAGE on /dev/spidevB.C. A hostile USB device spoofing 1a86:5512 cannot make trans->tx_buf or rx_buf NULL, and ch341_probe() issues no SPI transfers. AC:L - With the node open, read() deterministically passes tx_buf=NULL to memcpy() and write() passes rx_buf=NULL to usb_bulk_msg(). There is no race or layout dependence. The attacker's only steps are open() and read()/write(). Binding spidev is the driver's operating configuration, since nothing else consumes the spi-ch341a device. PR:L - spidev_open(), spidev_read() and spidev_write() perform no capability check; only the node's DAC mode gates access. Binding spidev to spi-ch341a needs root, but SBC udev rules commonly grant a non-root spi group 0660 on spidev nodes. Any user in that group can trigger the bug. UI:N - The attacker opens the spidev node and issues the half-duplex read() or write() itself; no other user, mount or administrator action is needed at attack time. S:U - The NULL memcpy and the misdirected bulk-IN DMA crash or corrupt the same kernel that hosts the driver; no VM, IOMMU or sandbox boundary is crossed. C:H - rx_buf=NULL is not a pure NULL deref. usb_hcd_map_urb_for_dma() calls dma_map_single(NULL), and on 32-bit kernels __pa(NULL) is real RAM (0x40000000 on x86_32) that dma_capable() accepts. The CH341 then DMAs up to 31 MISO bytes into an unrelated page, and repeating that write can corrupt page tables for arbitrary reads. I:H - The user controls the DMA'd bytes: they program the attached SPI flash over spidev, then issue a write()-only READ command. Each call writes up to 31 chosen bytes to a fixed physical page with no ownership check, which is exploitable kernel memory corruption. A:H - spidev_read() hands tx_buf=NULL to ch341_transfer_one(), whose memcpy(ch341->tx_buf + 1, NULL, len - 1) oopses on every architecture. The rx path also faults through swiotlb bouncing or PIO host controllers. Both can be repeated at will.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8846739f52afa07e63395c80227dc544f54bd7b1 to < 2481f9585c843728cffe5d75d0104552e834f0d1 (affected · git)8846739f52afa07e63395c80227dc544f54bd7b1 to < 90cc16ecf4a70aad6f8b3ea5af8ec38064b03428 (affected · git)8846739f52afa07e63395c80227dc544f54bd7b1 to < f1e1d3a1014aee93bc33e8cb4994123684f1cf38 (affected · git)8846739f52afa07e63395c80227dc544f54bd7b1 to < 84182c48999f856c3865e4a537c244f9569c9f6c (affected · git)Default: unaffected Linux · cna
Linux Linux 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
67048e5b0585b7b110e6469c41e4473a9a7e5b0067ec4cdd0406b101cd7df2bb
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected