tty: pcn_uart: fix memory leak with using debugfs_lookup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tty: pcn_uart: 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 pcn_uart driver can leak memory over time when it calls debugfs_lookup() without releasing the result. The input does not specify how an attacker could trigger the leak or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their systems use the affected pcn_uart driver; affected versions are not specified.