# CVE-2023-53405: USB: gadget: gr_udc: fix memory leak with using debugfs_lookup()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-09-18T13:58:44.401Z
- Modified: 2026-06-17T06:45:14.233Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 425de3182c91b467f1fc8a0de841d74d866719ca before 30f9ba2396a1130eef7f2d3ee7ee8037b7c25be9; from 425de3182c91b467f1fc8a0de841d74d866719ca before be21a66e17ee0ab5f3513b6c86659e60cec5e981; from 425de3182c91b467f1fc8a0de841d74d866719ca before 0933eca15f5223b5c2412080c8c3de8758465c78; from 425de3182c91b467f1fc8a0de841d74d866719ca before 73f4451368663ad28daa67980c6dd11d83b303eb; 5.14 (not affected: before 5.14; from 5.15.100 up to 5.15.*; from 6.1.18 up to 6.1.*; from 6.2.5 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: before 5.15.100; from 5.16 before 6.1.18; from 6.2 before 6.2.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/30f9ba2396a1130eef7f2d3ee7ee8037b7c25be9> (patch)
- <https://git.kernel.org/stable/c/be21a66e17ee0ab5f3513b6c86659e60cec5e981> (patch)
- <https://git.kernel.org/stable/c/0933eca15f5223b5c2412080c8c3de8758465c78> (patch)
- <https://git.kernel.org/stable/c/73f4451368663ad28daa67980c6dd11d83b303eb> (patch)

## Sources

- CVE List: [CVE-2023-53405](https://www.cve.org/CVERecord?id=CVE-2023-53405), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53405](https://nvd.nist.gov/vuln/detail/CVE-2023-53405), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53405 · Whole record: https://cve.day/CVE-2023-53405.json · Rebuilt by cve.day 2026-11-25T22:58:34.869Z
