Memory Leak Vulnerability in Linux Kernel's USB Gadget for PXA25X UDC
CVE-2023-53406
What is CVE-2023-53406?
A memory leak vulnerability exists in the USB gadget implementation of the Linux kernel, specifically within the pxa25x_udc subsystem. The issue arises when the function debugfs_lookup() is called without ensuring that dput() is properly invoked, leading to gradual memory consumption. To address this vulnerability effectively, developers are advised to use debugfs_lookup_and_remove(), which simplifies the memory management by handling both operations in one call, thereby preventing memory leaks.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 6236a6d2cdfb710bd8a82c4b179d0a034d0d99cb
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 78d9586d8e728be1e360d3d0da7170c791d1d55e
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8d48a7887dbca22e064c20caf20ae7949019fe9b