7

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 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.
Data is provided by the National Vulnerability Database (NVD)
LinuxLinux Kernel Version >= 5.4.257 < 5.4.280
LinuxLinux Kernel Version >= 5.10.197 < 5.10.222
LinuxLinux Kernel Version >= 5.15.133 < 5.15.163
LinuxLinux Kernel Version >= 6.1.55 < 6.1.100
LinuxLinux Kernel Version >= 6.6 < 6.6.41
LinuxLinux Kernel Version >= 6.7 < 6.9.10
Zu dieser CVE wurde keine CISA KEV oder CERT.AT-Warnung gefunden.
EPSS Metriken
Type Source Score Percentile
EPSS FIRST.org 0.01% 0.012
CVSS Metriken
Source Base Score Exploit Score Impact Score Vector string
nvd@nist.gov 7 1 5.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.