kernel/fail_function: fix memory leak with using debugfs_lookup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4b1a29a7f5425d32640b34b8a755f34e02f64d0f · < 2bb3669f576559db273efe49e0e69f82450efbca| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
kernel/fail_function: 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.
From the CVE record · Linux
The Linux kernel's fail_function component can leak memory over time because it does not release the result of debugfs_lookup(). The input does not describe how an attacker could trigger the leak or specify access, authentication, or user-interaction requirements.
Teams running the Linux kernel should check their versions; the affected versions are not specified.