PT-2024-6398 · Linux+10 · Linux Kernel+10
Jann Horn
·
Published
2024-07-02
·
Updated
2025-09-29
·
CVE-2024-41012
CVSS v3.1
6.3
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue is related to a race condition between
fcntl setlk() and close() in the Linux kernel, which can lead to use-after-free reads when userspace reads /proc/locks. This can potentially allow an attacker to read arbitrary kernel memory, but it cannot corrupt kernel memory. The problem arises when fcntl setlk() races with close(), removing the created lock with do lock file wait(), and Linux Security Modules (LSMs) allow the first do lock file wait() while denying the second. Additionally, posix lock file() may fail to remove a lock due to GFP KERNEL allocation failure.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
DoS
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu