pds_core: fix debugfs_lookup dentry leak and error handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
3ffe14c36985e3174933127c9efad82ac8f3fefb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
pds_core: fix debugfs_lookup dentry leak and error handling
debugfs_lookup() returns a dentry with an elevated reference count that must be released with dput(). The current code discards the returned dentry without calling dput(), causing a reference leak on every firmware reset recovery.
Additionally, when CONFIG_DEBUG_FS is disabled, debugfs_lookup() returns ERR_PTR(-ENODEV), not NULL. The current check passes for error pointers and would call dput() on an invalid pointer, causing a crash.
From the CVE record · Linux
The Linux kernel's pds_core code leaks a dentry reference on every firmware reset recovery. When CONFIG_DEBUG_FS is disabled, its error handling can instead cause a crash. The input does not specify how an attacker could trigger either condition or whether authentication or user interaction is required.
Anyone running a Linux kernel with the affected pds_core code should check their version; affected versions are not specified.