Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-41012

7.8 · HIGH
Published Jul 23, 2024 linux CWE-416 EPSS 0.23% (14th pctl)

Overview

CVE-2024-41012 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 23, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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().

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 2.6.13, < 4.19.319 Affected

Frequently Asked Questions

What is CVE-2024-41012?

CVE-2024-41012 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 23, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-41012?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-41012?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-41012?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-41012 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.