CVE-2026-43432

MEDIUM

usb: xhci: Fix memory leak in xhci_disable_slot()

Title source: cna
STIX 2.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.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (26)
Linux/Linux < 5.16
Linux/Linux 02d5a2a48bb44e7404b794df87e57588b2fd604e - 6288baf0c8c4dcfbf206773aede9c1f2269cec28
Linux/Linux 4.19.221 - 4.20
Linux/Linux 5.10.253 - 5.10.*
Linux/Linux 5.10.85 - 5.10.253
Linux/Linux 5.15.203 - 5.15.*
Linux/Linux 5.15.8 - 5.15.203
Linux/Linux 5.16
Linux/Linux 5.4.165 - 5.5
Linux/Linux 6.1.167 - 6.1.*
... and 16 more
Published May 08, 2026
Tracked Since May 08, 2026