LiveActive security incident?Get immediate response
CVE Record

CVE-2024-41012: filelock: Remove locks reliably when fcntl/close race is detected

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

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A local Linux user may trigger a file-locking race that leaves stale lock state referencing freed memory. Reading /proc/locks afterward can expose kernel memory. This could disclose sensitive information, but the supplied technical description says the flaw cannot corrupt kernel memory.

Executive priority

Treat as an expedited patching issue on shared, multi-user, or multi-tenant Linux systems. Other systems can follow risk-based kernel maintenance after confirming vendor status. There is no supplied evidence of active exploitation, but potential kernel-memory disclosure warrants timely remediation.

Technical view

A race between fcntl_setlk() and close() may create a POSIX lock that later cannot be removed because an LSM denies removal or memory allocation fails. Subsequent lock_get_status() access through /proc/locks causes use-after-free reads. The fix uses locks_remove_posix() to remove locks reliably.

Likely exposure

Exposure is limited to Linux systems running affected or unpatched vendor kernels where a user has local, low-privileged access. Multi-user and multi-tenant hosts deserve particular attention. Distribution backports mean version strings alone may not establish vulnerability.

Exploitation context

The supplied CVSS vector describes local, low-complexity exploitation requiring low privileges and no user interaction. The source suggests arbitrary kernel-memory disclosure is likely, but provides no evidence of memory corruption. This CVE is not listed as KEV in the supplied bundle, and no active exploitation is cited.

Researcher notes

The key failure is unreliable cleanup after a fcntl_setlk()/close() race. Cleanup may fail through differing LSM decisions or allocation failure during lock-range splitting. The resulting dangling lock is read through /proc/locks. The supplied description supports disclosure, not kernel-memory modification; the CVSS integrity and availability impacts are therefore not technically explained by the narrative.

Mitigation direction

  • Apply vendor kernel updates incorporating the cited stable fixes.
  • Consult distribution security guidance because patched package versions may differ from upstream versions.
  • Prioritize shared systems allowing untrusted or low-privileged local users.
  • Reduce unnecessary local account access until affected kernels are updated.

Validation and detection

  • Inventory running kernel versions across Linux hosts.
  • Check vendor advisories and package changelogs for CVE-2024-41012 or the cited fixes.
  • Confirm updated kernels are running after maintenance.
  • Do not rely solely on upstream version numbers when distributions use backported patches.
Prepared
Confidence
high
Sources
11

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2024-41012 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
2ADP providers
10Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Linux

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2024-41012Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CVECVE Program Container
CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxc293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610d, c293621bbf678a3d85e3ed721c3921c8a670610dunaffected
LinuxLinux2.6.13, 0, 4.19.319, 5.4.281, 5.10.223, 5.15.164, 6.1.101, 6.6.42, 6.9.9, 6.10affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.