Skip to main content
← All vulnerabilities
CVE-2024-14027

xattr: switch to CLASS(fd)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.6.133, 6.11
1 proof of concept on GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: fs/xattr: missing fdput() in fremovexattr error path In the Linux kernel, the fremovexattr() syscall calls fdget() to acquire a file reference but returns early without calling fdput() when strncpy_from_user() fails on the name argument. In multi-threaded processes where fdget() takes the slow path, this permanently leaks one file reference per call, pinning the struct file and associated kernel objects in memory. An unprivileged local user can exploit this to cause kernel memory exhaustion. The issue was inadvertently fixed by commit a71874379ec8 ("xattr: switch to CLASS(fd)").

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.6.51 · fixed in 6.6.133; From 6.10.10 · fixed in 6.11

  • Linux Linux

    6.11

References 4

git.kernel.org

GitHub · lcfr-hax/CVE-2024-14027_slop