CVE-2026-43432

usb: xhci: Fix memory leak in xhci_disable_slot()

MEDIUM
5.5
CVSS Score
Published: May 8, 2026 at 02:22 PM UTC
Updated: June 17, 2026 at 10:49 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.19.221v ≥ 5.4.1654.19.221 ≤ v < 4.205.10.85 ≤ v < 5.10.2535.15.8 ≤ v < 5.15.2035.16 ≤ v < 6.1.1675.16 ≤ v < 6.12.785.16 ≤ v < 6.18.195.16 ≤ v < 6.19.95.16 ≤ v < 6.6.1305.16 ≤ v < 7.05.4.165 ≤ v < 5.56.13 ≤ v < 6.18.196.19 ≤ v < 6.19.96.2 ≤ v < 6.6.1306.7 ≤ v < 6.12.782d5a2a48bb44e7404b794df87e57588b2fd604e4.19.2215.10.855.15.85.165.4.1657.0 rc17.0 rc27.0 rc37.0 rc47faac1953ed1f658f719cdf7bb7303fa5eef822ccc7c2818c71ebace207df40cc586c8c74e3d1a59ec0cddcc2454ab08193beb473978f8f8889b7e24fee8be5bde562d4f5f9a100ca80c6d7072ed34c8
Vendor states this is fixed in 078b446efc0f5e496c31bccb72b98af979963a83 (fixed)
Vendor states this is fixed in 1e800e26d54ccf2ddf2ea6d6cbe021c804d8aa62 (fixed)
Vendor states this is fixed in 2e2baa8fb5aa4d080cbfeb84c51eff797529f413 (fixed)
Vendor states this is fixed in 46aea90763832cd6e9b0c2e1c00e6a9512156d4b (fixed)
Vendor states this is fixed in 6288baf0c8c4dcfbf206773aede9c1f2269cec28 (fixed)
Vendor states this is fixed in 807e4fb5140c73eb5dba1e399a990db5c1f3cdf8 (fixed)
Vendor states this is fixed in c1c8550e70401159184130a1afc6261db01fc0ce (fixed)
Vendor states this is fixed in c65f1b840ab8ce72ba68f1b63bab7960f8fdfa89 (fixed)
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.253 (unaffected)
Vendor states this is fixed in 5.15.203 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Affected range stops below 5.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.167 (unaffected)
Vendor states this is fixed in 6.12.78 (unaffected)
Vendor states this is fixed in 6.18.19 (unaffected)
Vendor states this is fixed in 6.19.9 (unaffected)
Vendor states this is fixed in 6.6.130 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card