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

filelock: fix potential use-after-free in posix_lock_inode

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.280, 5.10.222, 5.15.163, 6.1.100, 6.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: filelock: fix potential use-after-free in posix_lock_inode Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode(). The request pointer had been changed earlier to point to a lock entry that was added to the inode's list. However, before the tracepoint could fire, another task raced in and freed that lock. Fix this by moving the tracepoint inside the spinlock, which should ensure that this doesn't happen.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.4.257 · fixed in 5.4.280; From 5.10.197 · fixed in 5.10.222; From 5.15.133 · fixed in 5.15.163; From 6.1.55 · fixed in 6.1.100; From 6.5.5 · fixed in 6.6

  • Linux Linux

    6.6

References 7

git.kernel.org