A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-41012

CVE-2024-41012: Linux Kernel Use-After-Free Vulnerability

CVE-2024-41012 is a use-after-free vulnerability in Linux Kernel filelock mechanism that can allow arbitrary kernel memory reads. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2024-41012 Overview

CVE-2024-41012 is a use-after-free vulnerability [CWE-416] in the Linux kernel's POSIX file locking subsystem. The flaw resides in fcntl_setlk(), where a race between fcntl() and close() can leave a stale lock attached to a freed file structure. Linux Security Modules (LSMs) may permit the first do_lock_file_wait() call that creates the lock while denying the subsequent call that attempts to remove it. A GFP_KERNEL allocation failure in posix_lock_file() during range splitting can produce the same outcome. After the race triggers, reading /proc/locks causes use-after-free reads inside lock_get_status().

Critical Impact

Local low-privileged users can trigger use-after-free reads in kernel memory by reading /proc/locks, enabling potential disclosure of arbitrary kernel memory contents.

Affected Products

  • Linux Kernel versions prior to the fixed stable releases
  • Linux Kernel 6.10 release candidates (rc1 through rc6)
  • Debian distributions covered by the Debian LTS security advisory

Discovery Timeline

  • 2024-07-23 - CVE-2024-41012 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-41012

Vulnerability Analysis

The vulnerability lives in the kernel's filelock subsystem, which manages POSIX advisory locks on open files. When fcntl_setlk() detects that the file descriptor has been closed concurrently by another thread, it attempts to unwind by calling do_lock_file_wait() a second time to remove the lock it just installed. This unwind path is not guaranteed to succeed. An LSM such as SELinux or AppArmor may approve the lock creation but reject the lock removal, leaving the lock attached to a file structure that is about to be freed. Separately, posix_lock_file() can fail with -ENOMEM when it must split an existing lock range and the GFP_KERNEL allocation fails.

Root Cause

The root cause is an asymmetric error-handling assumption: the unwind code assumes lock removal cannot fail, but both LSM hooks and memory allocator failures can cause it to fail. The stale lock then references freed memory once the file's files_struct is torn down.

Attack Vector

An attacker requires local code execution with the ability to call fcntl() and close() on a file descriptor and to read /proc/locks. By racing fcntl(F_SETLK) against close() under an LSM policy that denies lock removal, the attacker plants a dangling lock. Subsequent reads of /proc/locks invoke lock_get_status() on freed memory, returning arbitrary kernel data to userspace. The fix replaces the second do_lock_file_wait() with locks_remove_posix(), which is the same routine used by filp_flush() and is designed to reliably clear POSIX locks for a given file and files_struct.

Detection Methods for CVE-2024-41012

Indicators of Compromise

  • Unprivileged processes performing high-frequency fcntl(F_SETLK) calls interleaved with close() on the same file descriptor
  • Repeated reads of /proc/locks by non-administrative processes
  • Kernel warnings or KASAN reports referencing lock_get_status or posix_lock_file

Detection Strategies

  • Audit kernel logs (dmesg, journalctl -k) for use-after-free splats, KASAN reports, or BUG: messages originating in fs/locks.c
  • Monitor auditd for syscall=fcntl events correlated with close from the same process under tight time windows
  • Inventory running kernel versions against the patched stable releases listed in the kernel.org commits

Monitoring Recommendations

  • Enable auditd rules covering fcntl, close, and reads of /proc/locks for non-root users
  • Forward kernel ring buffer logs to a centralized SIEM or data lake for retrospective analysis
  • Track process behavior anomalies such as sustained syscall storms targeting file locking primitives

How to Mitigate CVE-2024-41012

Immediate Actions Required

  • Apply the upstream stable kernel updates that incorporate the fix replacing do_lock_file_wait() with locks_remove_posix() in the fcntl_setlk() unwind path
  • For Debian systems, install the kernel package referenced in the Debian LTS Announcement
  • Reboot affected systems after patching so the new kernel image is active

Patch Information

The upstream fix is distributed across multiple stable branches. Refer to the corresponding kernel.org commits for each branch: Kernel Git Commit 3cad1bc, Kernel Git Commit 52c87ab, Kernel Git Commit 5661b9, Kernel Git Commit 5f5d07, Kernel Git Commit b6d223, Kernel Git Commit d30ff3, Kernel Git Commit dc2ce1d, and Kernel Git Commit ef8fc41.

Workarounds

  • Restrict read access to /proc/locks for unprivileged users where operational requirements permit
  • Reduce attack surface by limiting local shell access to untrusted users on multi-tenant systems
  • Where patching is delayed, audit and tighten LSM policies that asymmetrically permit lock creation but deny lock removal

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Git Commit 3cad1bc

  • Kernel Git Commit 52c87ab

  • Kernel Git Commit 5661b9

  • Kernel Git Commit 5f5d07

  • Kernel Git Commit b6d223

  • Kernel Git Commit d30ff3

  • Kernel Git Commit dc2ce1d

  • Kernel Git Commit ef8fc41
  • Related CVEs
  • CVE-2026-46330: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-46323: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-46319: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-46313: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English