{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-100030",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.453Z",
        "datePublished": "2026-11-30T13:23:14.044Z",
        "dateUpdated": "2026-12-01T05:39:39.395Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:39:39.395Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: ch341: handle transfers without a TX or RX buffer\n\nch341_transfer_one() unconditionally copies from trans->tx_buf into the\nTX packet and hands trans->rx_buf to usb_bulk_msg() for the readback.\n\nThe SPI core allows half-duplex transfers where either of the buffers\nis NULL, so a transfer without TX data crashes the kernel on the memcpy\nand a transfer without RX data makes usb_bulk_msg() store the received\ndata at address 0.\n\nThe CH341A clocks data in both directions on every transfer; there is\nno mode to disable a direction. Set SPI_CONTROLLER_MUST_TX and\nSPI_CONTROLLER_MUST_RX so the SPI core fills in dummy buffers for\nhalf-duplex transfers."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-ch341.c"
                    ],
                    "versions": [
                        {
                            "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                            "lessThan": "2481f9585c843728cffe5d75d0104552e834f0d1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                            "lessThan": "90cc16ecf4a70aad6f8b3ea5af8ec38064b03428",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                            "lessThan": "f1e1d3a1014aee93bc33e8cb4994123684f1cf38",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                            "lessThan": "84182c48999f856c3865e4a537c244f9569c9f6c",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-ch341.c"
                    ],
                    "versions": [
                        {
                            "version": "6.11",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.11",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.11",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.11",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.11",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.11",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/2481f9585c843728cffe5d75d0104552e834f0d1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/90cc16ecf4a70aad6f8b3ea5af8ec38064b03428"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f1e1d3a1014aee93bc33e8cb4994123684f1cf38"
                },
                {
                    "url": "https://git.kernel.org/stable/c/84182c48999f856c3865e4a537c244f9569c9f6c"
                }
            ],
            "title": "spi: ch341: handle transfers without a TX or RX buffer",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}