NetSight
high7.8

CVE-2024-41049

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…

Impact

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.

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 5.4.257 before 5.4.280
from 5.10.197 before 5.10.222
from 5.15.133 before 5.15.163
from 6.1.55 before 6.1.100
from 6.6 before 6.6.41
from 6.7 before 6.9.10

Weakness classification

References