CVE-2024-41012

Updated: 2024-11-30 04:10:08.381017

Description:

In the Linux kernel, the following vulnerability has been resolved: filelock: Remove locks reliably when fcntl/close race is detected When fcntl_setlk() races with close(), it removes the created lock with do_lock_file_wait(). However, LSMs can allow the first do_lock_file_wait() that created the lock while denying the second do_lock_file_wait() that tries to remove the lock. Separately, posix_lock_file() could also fail to remove a lock due to GFP_KERNEL allocation failure (when splitting a range in the middle). After the bug has been triggered, use-after-free reads will occur in lock_get_status() when userspace reads /proc/locks. This can likely be used to read arbitrary kernel memory, but can't corrupt kernel memory. Fix it by calling locks_remove_posix() instead, which is designed to reliably get rid of POSIX locks associated with the given file and files_struct and is also used by filp_flush().


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x MEDIUM 6.3

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 6.3 MEDIUM Needs Triage 2024-11-12 11:58:37
AlmaLinux 9.2 FIPS kernel 5.14.0 6.3 MEDIUM Ignored 2024-09-16 12:22:58
CentOS 6 ELS kernel 2.6.32 6.3 MEDIUM Ignored 2024-09-16 12:22:58
CentOS 7 ELS kernel 3.10.0 6.3 MEDIUM Ignored 2024-09-16 12:22:57
CentOS 8.4 ELS kernel 4.18.0 6.3 MEDIUM Ignored 2024-09-24 05:35:53
CentOS 8.5 ELS kernel 4.18.0 6.3 MEDIUM Ignored 2024-09-24 05:35:53
CentOS Stream 8 ELS kernel 4.18.0 6.3 MEDIUM Ignored 2024-09-24 05:35:52
CloudLinux 6 ELS kernel 2.6.32 6.3 MEDIUM Ignored 2024-09-16 12:22:58
CloudLinux 7 ELS kernel 3.10.0 6.3 MEDIUM Ignored 2024-09-16 12:22:57
Oracle Linux 6 ELS kernel 2.6.32 6.3 MEDIUM Ignored 2024-09-16 12:22:57
Total: 14