USB: dwc3: fix memory leak with using debugfs_lookup()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cf52c320cf74245ce1c12b0bd48f77b87d77fbc9, Kernel 4.20, Kernel 5.11 and 8 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=8d396bb0a5b62b326f6be7594d8bd46b088296bd <cf52c320cf74245ce1c12b0bd48f77b87d77fbc9, >=4.19.196 <4.20, >=5.10.46 <5.11, >=5.12.13 <5.13, >=5.4.128 <5.5, >=8d396bb0a5b62b326f6be7594d8bd46b088296bd <bab872b638130a18fd54d9adfad7db77ed6457be, >=8d396bb0a5b62b326f6be7594d8bd46b088296bd <be308d68785b205e483b3a0c61ba3a82da468f2c, >=8d396bb0a5b62b326f6be7594d8bd46b088296bd <ce234af49d103d95e3fdca59b25e0d0242f41bb4, =3bef21035888dd19750ad79b5d08fe52a02ad719, =5.13, =afd8b0d091d5b4febe2d0ac3b7735c1826329302, =d7e403eea007f47776186d4d572f234b1221e6e3, =e52d43c82f2f6556f0b7a790c19c072c1e99a95f | cf52c320cf74245ce1c12b0bd48f77b87d77fbc9, 4.20, 5.11, 5.13, 5.5, bab872b638130a18fd54d9adfad7db77ed6457be, be308d68785b205e483b3a0c61ba3a82da468f2c, ce234af49d103d95e3fdca59b25e0d0242f41bb4 |
| linux-kernel: Kernel | >=5.10.46 <5.11, >=5.12.13 <5.13, >=5.13.0 <5.15.100, >=5.16.0 <6.1.18, >=5.4.128 <5.5, >=6.2.0 <6.2.5, >=4.19.196 <4.20 | 5.11, 5.13, 5.15.100, 6.1.18, 5.5, 6.2.5, 4.20 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket