boxscore/security
CVE · referencelatest edition

Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.

CVE-2024-41012MEDIUM
Linux Linux — filelock: Remove locks reliably when fcntl/close race is detected
  AV  AC  PR  UI  S  C  I  A   CVSS    EPSS   %ile   KEV
   L   H   L   N  U  H  N  H    6.3   .0023   14.1     —
AFFECTED
  Product  Versions                                    Fixed
  Linux    c293621bbf678a3d85e3ed721c3921c8a670610d –  —
  Linux    2.6.13 –                                    4.19.319
TIMELINE
  Jul 12  Reserved by Linux
  Jul 23  Published (CNA: Linux)
  Aug 4   RESCORED — CVE-2024-41012 (Linux). CVSS 7.8 → 6.3 (NVD).
CWE-416 · CNA: Linux · CVSS v3.1 · 9 references · NVD status: Modified

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

Lifecycle

Complete event history — 3 events, chronological
DateEventDetail
July 12, 2024ReservedReserved by Linux
July 23, 2024PublishedPublished (CNA: Linux)
August 4, 2026RESCOREDRESCORED — CVE-2024-41012 (Linux). CVSS 7.8 → 6.3 (NVD).

Affected

Affected products and packages — 2 rows
VendorProduct / PackageEcosystemVersion introducedFixed
LinuxLinuxc293621bbf678a3d85e3ed721c3921c8a670610d
LinuxLinux2.6.134.19.319

Weaknesses

CWE-416

References (9)

Related

Authoritative record: CVE-2024-41012 at cve.org

Vendors: linux

Weaknesses: CWE-416

About this page

This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2024-41012 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.