Back

MEDIUM

pds_core: fix debugfs_lookup dentry leak and error handling

Published Jul 19, 2026

Description

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.

Affected products

Remediation

No remediation recorded yet.

Weaknesses (2)

References (11)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Jul 19, 2026
Updated Jul 19, 2026
Reserved Jul 19, 2026
NVD
Status Analyzed
Modified Aug 17, 2026
Red Hat
Severity n/a
Public date Jul 19, 2026
ENISA EUVD
Assigner Linux
Published Jul 19, 2026
Updated Jul 19, 2026
Exploited since n/a
EUVD-2026-45832