CVE-2024-27389: pstore: inode: Only d_invalidate() is needed
In the Linux kernel, the following vulnerability has been resolved:
pstore: inode: Only dinvalidate() is needed
The Linux kernel CVE team has assigned CVE-2024-27389 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024050135-CVE-2024-27389-fb3a@gregkh/T
Other sources
In the Linux kernel, the following vulnerability has been resolved:
pstore: inode: Only dinvalidate() is needed
Unloading a modular pstore backend with records in pstorefs would trigger the dput() double-drop warning:
WARNING: CPU: 0 PID: 2569 at fs/dcache.c:762 dput.part.0+0x3f3/0x410
Using the combo of ddrop()/dput() (as mentioned in Documentation/filesystems/vfs.rst) isn't the right approach here, and leads to the reference counting problem seen above. Use dinvalidate() and update the code to not bother checking for error codes that can never happen.
---
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.83 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.23 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.7.11 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8.2 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch CVE-2024-27389 - Configuration
Update the Linux kernel pstore inode code to use d_invalidate() instead of the d_drop()/dput combo to avoid the dput() double-drop reference-counting problem (per upstream advisory: "Use d_invalidate()").
Linux kernel pstore inode d_invalidate usage (replace d_drop()/dput combo) = Use d_invalidate()
Event History
Frequently Asked Questions
What is the severity of CVE-2024-27389?
CVE-2024-27389 has a moderate severity rating due to its potential impact on the Linux kernel's functionality.
How do I fix CVE-2024-27389?
To fix CVE-2024-27389, update the Linux kernel to versions 6.1.83, 6.6.23, 6.7.11, 6.8.2, 6.9 or applicable Debian versions.
Which Linux kernel versions are affected by CVE-2024-27389?
CVE-2024-27389 affects Linux kernel versions prior to 6.1.83 and has specific Debian versions in the range of 5.10.223-1 to 5.10.226-1.
Is CVE-2024-27389 related to any specific Linux distributions?
Yes, CVE-2024-27389 is relevant to Red Hat and Debian distributions utilizing the specified kernel versions.
What type of vulnerability is CVE-2024-27389?
CVE-2024-27389 is categorized as an issue within the pstore subsystem of the Linux kernel.