CVE Database›Document archive›CVE-2026-89739

CVE-2026-89739

kernel: usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition

Loading…

Severity

Moderate

Red Hat Product Security

4.7

CVSS 3.1

Review impact separately from score.

Published · September 11, 2026

Updated · October 29, 2026

Description

A flaw was found in the Linux kernel's USB dwc3 gadget driver. A race condition exists where a delayed operation might try to access memory that has already been freed. This can lead to a use-after-free vulnerability, which a local attacker could potentially exploit to cause a system crash (denial of service) or gain elevated privileges.

Statement

A use-after-free race exists in the DWC3 USB gadget endpoint cleanup path because delayed nostream_work can remain pending or running after the endpoint object has been freed. A NoStream endpoint event can queue the delayed work, while gadget teardown can later free the same dep object, allowing dwc3_nostream_work to access freed kernel memory. For the CVSS the PR:L is used for the paranoid score because reduced capability root, service accounts, or delegated USB gadget management may be enough to trigger gadget teardown while USB events are pending. The issue is not network reachable over IP and normally requires local control of gadget teardown and or physical USB interaction with the device. Impact is at least denial of service via kernel crash, and in the paranoid interpretation the UAF may allow confidentiality and integrity impact if freed memory is reused in a controllable way.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-416 · Use After Free