CVE-2026-43432

usb: xhci: Fix memory leak in xhci_disable_slot()

State
Published
Severity
Not scored
Published
May 8, 2026
Updated
May 23, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fee8be5bde562d4f5f9a100ca80c6d7072ed34c8 to before 1e800e26d54ccf2ddf2ea6d6cbe021c804d8aa62Affected
  • 02d5a2a48bb44e7404b794df87e57588b2fd604e to before 6288baf0c8c4dcfbf206773aede9c1f2269cec28Affected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before 46aea90763832cd6e9b0c2e1c00e6a9512156d4bAffected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before 2e2baa8fb5aa4d080cbfeb84c51eff797529f413Affected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before 807e4fb5140c73eb5dba1e399a990db5c1f3cdf8Affected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before c65f1b840ab8ce72ba68f1b63bab7960f8fdfa89Affected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before 078b446efc0f5e496c31bccb72b98af979963a83Affected
  • 7faac1953ed1f658f719cdf7bb7303fa5eef822c to before c1c8550e70401159184130a1afc6261db01fc0ceAffected
  • cc7c2818c71ebace207df40cc586c8c74e3d1a59Affected
  • ec0cddcc2454ab08193beb473978f8f8889b7e24Affected
  • 5.10.85 to before 5.10.253Affected
  • 5.15.8 to before 5.15.203Affected
  • 4.19.221 to before 4.20Affected
  • 5.4.165 to before 5.5Affected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 5.10.253 through 5.10.*Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.167 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.78 through 6.12.*Not affected
  • 6.18.19 through 6.18.*Not affected
  • 6.19.9 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.