CVE-2026-100030 (GCVE-0-2026-100030)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:23 – Updated: 2026-12-01 05:39
VLAI
Title
spi: ch341: handle transfers without a TX or RX buffer
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 8846739f52afa07e63395c80227dc544f54bd7b1 , < 2481f9585c843728cffe5d75d0104552e834f0d1 (git)
Affected: 8846739f52afa07e63395c80227dc544f54bd7b1 , < 90cc16ecf4a70aad6f8b3ea5af8ec38064b03428 (git)
Affected: 8846739f52afa07e63395c80227dc544f54bd7b1 , < f1e1d3a1014aee93bc33e8cb4994123684f1cf38 (git)
Affected: 8846739f52afa07e63395c80227dc544f54bd7b1 , < 84182c48999f856c3865e4a537c244f9569c9f6c (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.11
Unaffected: 0 , < 6.11 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-ch341.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2481f9585c843728cffe5d75d0104552e834f0d1",
              "status": "affected",
              "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
              "versionType": "git"
            },
            {
              "lessThan": "90cc16ecf4a70aad6f8b3ea5af8ec38064b03428",
              "status": "affected",
              "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
              "versionType": "git"
            },
            {
              "lessThan": "f1e1d3a1014aee93bc33e8cb4994123684f1cf38",
              "status": "affected",
              "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
              "versionType": "git"
            },
            {
              "lessThan": "84182c48999f856c3865e4a537c244f9569c9f6c",
              "status": "affected",
              "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-ch341.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\u003etx_buf into the\nTX packet and hands trans-\u003erx_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": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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-\u003etx_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\u0027s only steps are open() and read()/write(). Binding spidev is the driver\u0027s 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\u0027s 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\u0027d 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-\u003etx_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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:39:39.395Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-100030",
    "datePublished": "2026-11-30T13:23:14.044Z",
    "dateReserved": "2026-09-25T10:25:14.453Z",
    "dateUpdated": "2026-12-01T05:39:39.395Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-100030",
      "date": "2026-12-04",
      "epss": "0.00175",
      "percentile": "0.07295"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/spi/spi-ch341.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "2481f9585c843728cffe5d75d0104552e834f0d1",
                    "status": "affected",
                    "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "90cc16ecf4a70aad6f8b3ea5af8ec38064b03428",
                    "status": "affected",
                    "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f1e1d3a1014aee93bc33e8cb4994123684f1cf38",
                    "status": "affected",
                    "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "84182c48999f856c3865e4a537c244f9569c9f6c",
                    "status": "affected",
                    "version": "8846739f52afa07e63395c80227dc544f54bd7b1",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/spi/spi-ch341.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.11"
                  },
                  {
                    "lessThan": "6.11",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\u003etx_buf into the\nTX packet and hands trans-\u003erx_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."
          }
        ],
        "id": "CVE-2026-100030",
        "lastModified": "2026-12-01T06:17:19.707",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:18.717",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2481f9585c843728cffe5d75d0104552e834f0d1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/84182c48999f856c3865e4a537c244f9569c9f6c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/90cc16ecf4a70aad6f8b3ea5af8ec38064b03428"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f1e1d3a1014aee93bc33e8cb4994123684f1cf38"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:06:57+00:00",
      "cve": "CVE-2026-100030",
      "id": "CVE-2026-100030",
      "initial_release_date": "2026-11-30T13:23:14.044000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via missing buffer checks in CH341 SPI driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100030.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.