CVE-2023-53405: USB: gadget: gr_udc: fix memory leak with using debugfs_lookup()
In the Linux kernel, the following vulnerability has been resolved:
USB: gadget: gr_udc: fix memory leak with using debugfs_lookup()
When calling debugfs_lookup() the result must have dput() called on it,
otherwise the memory will leak over time. To make things simpler, just
call debugfs_lookup_and_remove() instead which handles all of the logic
at once.
Security readout for executives and security teams
Plain-English summary
CVE-2023-53405 is a Linux kernel memory leak in the USB gadget gr_udc driver. A local low-privileged user could potentially exhaust memory over time, affecting availability. The source does not show data theft, integrity impact, remote attackability, or active exploitation evidence.
Executive priority
Treat as a moderate patching item. It is not currently supported as remotely exploitable or actively exploited, but affected local-access systems could suffer denial of service. Prioritize exposed shared, embedded, or operationally critical Linux devices.
Technical view
The issue is CWE-401 in Linux USB gadget gr_udc debugfs cleanup logic. debugfs_lookup() returns a reference that requires dput(); the fix replaces the pattern with debugfs_lookup_and_remove(), avoiding leaked references. CVSS 3.1 is 5.5, local attack vector, low privileges, no user interaction, availability high.
Likely exposure
Exposure is likely limited to Linux systems running affected kernels where the USB gadget gr_udc driver and related debugfs paths are present. Embedded or specialized USB gadget deployments are more plausible than ordinary servers. Exact distro package exposure needs vendor mapping.
Exploitation context
The bundle marks KEV as false and provides no cited evidence of active exploitation. The CVSS vector indicates local, low-complexity exploitation requiring low privileges and no user interaction, with impact limited to availability.
Researcher notes
Evidence identifies a resolved kernel reference leak in gr_udc debugfs removal. The source bundle gives stable commit URLs but not full distro package status. Avoid assuming exploit maturity, broad server exposure, or universal kernel impact without local configuration and vendor advisories.
Mitigation direction
Update to a kernel or vendor package containing the referenced stable fixes.
Check distribution advisories for backported fixes and affected package names.
Prioritize systems using USB gadget functionality or specialized embedded kernels.
Apply normal local access hardening while patching is scheduled.
Validation and detection
Inventory kernel versions and compare against vendor security advisories.
Confirm whether the gr_udc driver is built, loaded, or used.
Verify vendor patches include the referenced debugfs cleanup fix.
Track availability symptoms only as supporting evidence, not proof of vulnerability.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-401: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-401 · source CWE mapping
Missing Release of Memory after Effective Lifetime
Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.