PT-2024-11277 · Linux+1 · Linux Kernel+1

Jack Pham

·

Published

2021-05-28

·

Updated

2025-04-30

·

CVE-2021-47272

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A possible scenario exists where dwc3 gadget init() can fail during a host to peripheral mode switch in dwc3 set mode(), and a pending gadget driver fails to bind. If the DRD undergoes another mode switch from peripheral to host, dwc3 gadget exit() will attempt to reference an invalid and dangling dwc->gadget pointer and call dma free coherent() on unmapped DMA pointers. The issue can be reproduced by starting DWC3 in peripheral mode, configuring ConfigFS gadget with FunctionFS instance, running FunctionFS userspace application, binding gadget driver to DWC3's UDC, switching to host mode, stopping FunctionFS application, switching to peripheral mode, and then back to host mode. Although userspace should ensure the FunctionFS application is ready before allowing the composite driver to bind to the UDC, failure to do so should not result in a panic from the kernel driver.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

NULL Pointer Dereference

Weakness Enumeration

Related Identifiers

BDU:2025-14366
CVE-2021-47272

Affected Products

Astra Linux
Linux Kernel