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.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before cf52c320cf74245ce1c12b0bd48f77b87d77fbc9
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before ce234af49d103d95e3fdca59b25e0d0242f41bb4
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before bab872b638130a18fd54d9adfad7db77ed6457be
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before be308d68785b205e483b3a0c61ba3a82da468f2c
5.15.100 (semver)
6.1.18 (semver)
6.2.5 (semver)
6.3 (original_commit_for_fix)
References
git.kernel.org/...c/cf52c320cf74245ce1c12b0bd48f77b87d77fbc9
git.kernel.org/...c/ce234af49d103d95e3fdca59b25e0d0242f41bb4
git.kernel.org/...c/bab872b638130a18fd54d9adfad7db77ed6457be
git.kernel.org/...c/be308d68785b205e483b3a0c61ba3a82da468f2c