Skip to main content
← All vulnerabilities
CVE-2023-53415

USB: dwc3: fix memory leak with using debugfs_lookup()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.20, 5.5, 5.11, 5.13
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: USB: dwc3: 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. Note, the root dentry for the debugfs directory for the device needs to be saved so we don't have to keep looking it up, which required a bit more refactoring to properly create and remove it when needed.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 4.19.196 · fixed in 4.20; From 5.4.128 · fixed in 5.5; From 5.10.46 · fixed in 5.11; From 5.12.13 · fixed in 5.13

  • Linux Linux

    5.13

References 4

git.kernel.org