CVE-2023-53415

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

State
Published
Severity
5.5 Medium
Published
Sep 18, 2025
Updated
May 23, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 8d396bb0a5b62b326f6be7594d8bd46b088296bd to before cf52c320cf74245ce1c12b0bd48f77b87d77fbc9Affected
  • 8d396bb0a5b62b326f6be7594d8bd46b088296bd to before ce234af49d103d95e3fdca59b25e0d0242f41bb4Affected
  • 8d396bb0a5b62b326f6be7594d8bd46b088296bd to before bab872b638130a18fd54d9adfad7db77ed6457beAffected
  • 8d396bb0a5b62b326f6be7594d8bd46b088296bd to before be308d68785b205e483b3a0c61ba3a82da468f2cAffected
  • 3bef21035888dd19750ad79b5d08fe52a02ad719Affected
  • d7e403eea007f47776186d4d572f234b1221e6e3Affected
  • e52d43c82f2f6556f0b7a790c19c072c1e99a95fAffected
  • afd8b0d091d5b4febe2d0ac3b7735c1826329302Affected
  • 4.19.196 to before 4.20Affected
  • 5.4.128 to before 5.5Affected
  • 5.10.46 to before 5.11Affected
  • 5.12.13 to before 5.13Affected
LinuxLinux
  • 5.13Affected
  • before 5.13Not affected
  • 5.15.100 through 5.15.*Not affected
  • 6.1.18 through 6.1.*Not affected
  • 6.2.5 through 6.2.*Not affected
  • 6.3 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.