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

spi: ch341: fix devres lifetime

USB drivers bind to USB interfaces and any device managed resources
should have their lifetime tied to the interface rather than parent USB
device. This avoids issues like memory leaks when drivers are unbound
without their devices being physically disconnected (e.g. on probe
deferral or configuration changes).

Fix the controller and driver data lifetime so that they are released
on driver unbind.

Note that this also makes sure that the SPI controller is placed
correctly under the USB interface in the device tree.
Published: 2026-05-28
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel's SPI driver for the CH341 controller performs device resource management incorrectly, causing resources to be tied to the USB device instead of the USB interface. When the driver is unbound, the associated resources are not released, leading to memory leaks. Over repeated rebind or probe‑deferral operations, these unfreed resources can accumulate, potentially exhausting system memory and degrading performance or triggering a denial of service. The primary weakness is a resource‑lifetime bug, which would be categorised as a memory‑leak issue.

Affected Systems

All Linux kernel releases that include the CH341 SPI driver before the commit referenced in the CVE are potentially affected. No specific version range is supplied; affected builds are any kernel that has not incorporated the fixes hosted in the linked git commits.

Risk and Exploitability

Exploit probability is not quantified (EPSS score is unavailable), and the vulnerability is not listed in CISA's KEV catalog. The risk stems from its nature as a memory leak that could be exacerbated by repeated unbinding events, which may be triggered by configuration changes or device probe deferrals. The attack vector is likely local or user‑initiated, as it requires interaction with the USB interface; it is inferred that an adversary with physical or privileged access could force unbind operations to cause the leak. No public exploit is documented, but the potential for resource exhaustion makes the vulnerability significant for long‑running or resource‑constrained systems.

Generated by OpenCVE AI on May 28, 2026 at 12:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel version that includes the CH341 resource‑lifetime fix, as referenced in the linked git commits.
  • If an up‑to‑date kernel is unavailable, backport the commit(s) that adjust devres lifetime and rebuild the kernel.
  • Verify that the device tree correctly places the SPI controller under the USB interface so that the lifetime semantics are respected.

Generated by OpenCVE AI on May 28, 2026 at 12:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 28 May 2026 10:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: ch341: fix devres lifetime USB drivers bind to USB interfaces and any device managed resources should have their lifetime tied to the interface rather than parent USB device. This avoids issues like memory leaks when drivers are unbound without their devices being physically disconnected (e.g. on probe deferral or configuration changes). Fix the controller and driver data lifetime so that they are released on driver unbind. Note that this also makes sure that the SPI controller is placed correctly under the USB interface in the device tree.
Title spi: ch341: fix devres lifetime
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-28T09:40:48.689Z

Reserved: 2026-05-13T15:03:33.106Z

Link: CVE-2026-46228

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-28T10:16:38.433

Modified: 2026-05-28T13:44:01.663

Link: CVE-2026-46228

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T15:45:19Z

Weaknesses