1. Home
  2. Vulnerabilities
  3. CVE-2026-43432

CVE-2026-43432

usb: xhci: Fix memory leak in xhci_disable_slot()

Published 8 May 2026 · modified 11 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 23/100

Summary

In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Fix memory leak in xhci_disable_slot() xhci_alloc_command() allocates a command structure and, when the second argument is true, also allocates a completion structure. Currently, the error handling path in xhci_disable_slot() only frees the command structure using kfree(), causing the completion structure to leak. Use xhci_free_command() instead of kfree(). xhci_free_command() correctly frees both the command structure and the associated completion structure. Since the command structure is allocated with zero-initialization, command->in_ctx is NULL and will not be erroneously freed by xhci_free_command(). This bug was found using an experimental static analysis tool we are developing. The tool is based on the LLVM framework and is specifically designed to detect memory management issues. It is currently under active development and not yet publicly available, but we plan to open-source it after our research is published. The bug was originally detected on v6.13-rc1 using our static analysis tool, and we have verified that the issue persists in the latest mainline kernel. We performed build testing on x86_64 with allyesconfig using GCC=11.4.0. Since triggering these error paths in xhci_disable_slot() requires specific hardware conditions or abnormal state, we were unable to construct a test case to reliably trigger these specific error paths at runtime.

Affected products and versions

Linux (15 line(s))
Linux
ProductVersionsFixed inSource
Linux from 5.10.85 (included) to 5.10.253 (excluded) — CNA (vendor or assigner)
Linux from 5.15.8 (included) to 5.15.203 (excluded) — CNA (vendor or assigner)
Linux from 4.19.221 (included) to 4.20 (excluded) — CNA (vendor or assigner)
Linux from 5.4.165 (included) to 5.5 (excluded) — CNA (vendor or assigner)
Linux 5.16 — CNA (vendor or assigner)
Linux kernel from 4.19.221 (included) to 4.20 (excluded) — NVD
Linux kernel from 5.4.165 (included) to 5.5 (excluded) — NVD
Linux kernel from 5.10.85 (included) to 5.10.253 (excluded) — NVD
Linux kernel from 5.15.8 (included) to 5.15.203 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.1.167 (excluded) — NVD
Linux kernel from 6.2 (included) to 6.6.130 (excluded) — NVD
Linux kernel from 6.7 (included) to 6.12.78 (excluded) — NVD
Linux kernel from 6.13 (included) to 6.18.19 (excluded) — NVD
Linux kernel from 6.19 (included) to 6.19.9 (excluded) — NVD
Linux kernel 7.0 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-401 · Autre (CWE-401)

How this data is obtained and calculated