Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2bbf2b1c20f934a054172175ccbabcc01fe69ef6 to < 60ef1675b652e912f3eb064767af4432393291fdaffectedbc90fbe0c3182157d2be100a2f6c2edbb1820677 to < 26e19622c485e53c3fdb299e822068a0542ddf0caffectedbc90fbe0c3182157d2be100a2f6c2edbb1820677 to < 91d13e92b983e6c6d7631012c2e20ae8057de9f2affectedbc90fbe0c3182157d2be100a2f6c2edbb1820677 to < d7f4dd4c8fb380898fef7a77d48fce7ccdb4fc32affectedbc90fbe0c3182157d2be100a2f6c2edbb1820677 to < dc416e32baaeb620b9809e9e25fc7b30889686e9affected3ffe14c36985e3174933127c9efad82ac8f3fefbaffected6.6.16 to < 6.6.142affected6.7.4 to < 6.8affected
Linux Linux
Default version status: affected
6.8affected0 to < 6.8unaffected6.6.142 to ≤ 6.6.*unaffected6.12.92 to ≤ 6.12.*unaffected6.18.34 to ≤ 6.18.*unaffected7.0.11 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/60ef1675b652e912f3eb064767af4432393291fd ↗
- https://git.kernel.org/stable/c/26e19622c485e53c3fdb299e822068a0542ddf0c ↗
- https://git.kernel.org/stable/c/91d13e92b983e6c6d7631012c2e20ae8057de9f2 ↗
- https://git.kernel.org/stable/c/d7f4dd4c8fb380898fef7a77d48fce7ccdb4fc32 ↗
- https://git.kernel.org/stable/c/dc416e32baaeb620b9809e9e25fc7b30889686e9 ↗