CVE-2024-27389

pstore: inode: Only d_invalidate() is needed

State
Published
Severity
7.8 High
Published
May 1, 2024
Updated
Aug 5, 2026
Reserved
Feb 25, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

pstore: inode: Only d_invalidate() 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 d_drop()/dput() (as mentioned in Documentation/filesystems/vfs.rst) isn't the right approach here, and leads to the reference counting problem seen above. Use d_invalidate() and update the code to not bother checking for error codes that can never happen.

---

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 609e28bb139e53621521130f0d4aea27a725d465 to before d0ee2a8adb6673382cce8a4280e1ca0849b3b783Affected
  • 609e28bb139e53621521130f0d4aea27a725d465 to before db6e5e16f1ee9e3b01d2f71c7f0ba945f4bf0f4eAffected
  • 609e28bb139e53621521130f0d4aea27a725d465 to before 4cdf9006fc095af71da80e9b5f48a32e991b9ed3Affected
  • 609e28bb139e53621521130f0d4aea27a725d465 to before cb9e802e49c24eeb3af35e9e8c04d526f35f112aAffected
  • 609e28bb139e53621521130f0d4aea27a725d465 to before 340682ed1932b8e3bd0bfc6c31a0c6354eb57cc6Affected
  • 609e28bb139e53621521130f0d4aea27a725d465 to before a43e0fc5e9134a46515de2f2f8d4100b74e50de3Affected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.83 through 6.1.*Not affected
  • 6.6.23 through 6.6.*Not affected
  • 6.7.11 through 6.7.*Not affected
  • 6.8.2 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.