CVE-2023-53405

USB: gadget: gr_udc: fix memory leak with using debugfs_lookup()

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

Read the record on cve.org

Description

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.

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
  • 425de3182c91b467f1fc8a0de841d74d866719ca to before 30f9ba2396a1130eef7f2d3ee7ee8037b7c25be9Affected
  • 425de3182c91b467f1fc8a0de841d74d866719ca to before be21a66e17ee0ab5f3513b6c86659e60cec5e981Affected
  • 425de3182c91b467f1fc8a0de841d74d866719ca to before 0933eca15f5223b5c2412080c8c3de8758465c78Affected
  • 425de3182c91b467f1fc8a0de841d74d866719ca to before 73f4451368663ad28daa67980c6dd11d83b303ebAffected
LinuxLinux
  • 5.14Affected
  • before 5.14Not 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.