Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-50164

CVE-2024-50164: Linux Kernel Privilege Escalation Bug

CVE-2024-50164 is a privilege escalation flaw in the Linux Kernel BPF verifier that allows unauthorized writes to read-only memory. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2024-50164 Overview

CVE-2024-50164 is a vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) verifier that allows unauthorized memory writes due to the overloaded meaning of the MEM_UNINIT flag. The vulnerability exists in the check_mem_size_reg() function, where write checks are bypassed when the register containing the buffer size has a non-constant value. This flaw enables a BPF program to write to memory regions marked as read-only, including .rodata global maps.

Critical Impact

Local attackers with BPF program execution capabilities can bypass verifier write checks and modify read-only memory regions, potentially leading to data integrity compromise and system instability.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.12-rc1 through 6.12-rc4
  • Various Linux distributions including Debian (see LTS security announcements)

Discovery Timeline

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

Technical Details for CVE-2024-50164

Vulnerability Analysis

This vulnerability stems from the semantic overloading of the MEM_UNINIT flag in the BPF verifier over time. Originally introduced in commit 435faee1aae9 to indicate that a buffer passed to a BPF helper does not need to be initialized, the flag's meaning evolved to also imply that the buffer is being written to. This dual interpretation creates a logical flaw in the verification process.

When the check_mem_size_reg() function encounters a register with a non-constant variable offset (var_off), it sets the meta pointer to NULL. This behavior was intended to force users to initialize buffers passed to helpers for unprivileged variable accesses. However, due to MEM_UNINIT's overloaded meaning, setting meta to NULL inadvertently bypasses the verifier's write checks while still performing boundary checks. The verifier then incorrectly assumes the memory is being read rather than written.

Root Cause

The root cause is the historical evolution of MEM_UNINIT's semantics without corresponding updates to all verification logic paths. The original meaning ("buffer does not need initialization") was conflated with "buffer is being written to" through subsequent commits, particularly 06c1c049721a ("bpf: allow helpers access to variable memory"). This created a situation where bypassing initialization requirements also bypassed write permission verification.

Attack Vector

An attacker with the ability to load and execute BPF programs can exploit this vulnerability through the following mechanism:

The attack requires local access with privileges sufficient to load BPF programs. The attacker crafts a BPF program that passes a buffer to a helper function with a non-constant size register. When the verifier processes this program, it sets meta to NULL, disabling write checks. The attacker can then target read-only memory regions such as .rodata global maps.

The fix involves separating the MEM_UNINIT flag back to its original meaning and introducing a new MEM_WRITE annotation for BPF helpers to explicitly trigger write verification checks. This ensures that buffer initialization requirements and write permission checks are handled independently.

Detection Methods for CVE-2024-50164

Indicators of Compromise

  • Unexpected modifications to read-only BPF map regions, particularly .rodata global maps
  • BPF programs loading with non-constant size arguments passed to helper functions
  • Anomalous BPF verifier behavior or unexpected program acceptance
  • System instability potentially caused by corruption of read-only kernel data structures

Detection Strategies

  • Monitor BPF program loading events using kernel audit subsystem (auditd with BPF syscall rules)
  • Implement runtime integrity monitoring for BPF maps marked as read-only
  • Use kernel tracing tools (ftrace, perf) to track check_mem_size_reg() function calls with anomalous parameters
  • Deploy endpoint detection solutions that can identify suspicious BPF activity patterns

Monitoring Recommendations

  • Enable BPF-related audit rules to log all BPF program load and map operations
  • Implement alerting for BPF programs that interact with global maps in unexpected ways
  • Monitor for kernel log messages related to BPF verifier warnings or errors
  • Consider deploying BPF LSM (Linux Security Module) hooks to enforce additional access controls on BPF operations

How to Mitigate CVE-2024-50164

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes the security fix
  • Restrict BPF program loading capabilities using sysctl kernel.unprivileged_bpf_disabled=1
  • Review and audit existing BPF programs for suspicious memory access patterns
  • Monitor systems for signs of exploitation while patches are being deployed

Patch Information

The vulnerability has been addressed through multiple kernel commits that revert MEM_UNINIT to its original meaning and introduce MEM_WRITE as a separate annotation:

  • Linux Kernel Commit 48068cc
  • Linux Kernel Commit 54bc316
  • Linux Kernel Commit 8ea6073

Debian users should refer to the Debian LTS Security Announcement for distribution-specific patches.

Workarounds

  • Disable unprivileged BPF access system-wide to reduce the attack surface
  • Implement strict access controls on who can load BPF programs using capabilities (CAP_BPF, CAP_SYS_ADMIN)
  • Use container security profiles (seccomp, AppArmor) to restrict BPF syscall access
  • Consider using BPF token-based authorization for fine-grained BPF access control
bash
# Disable unprivileged BPF access
sysctl -w kernel.unprivileged_bpf_disabled=1

# Make the setting persistent across reboots
echo "kernel.unprivileged_bpf_disabled = 1" >> /etc/sysctl.d/99-bpf-hardening.conf

# Verify the setting
sysctl kernel.unprivileged_bpf_disabled

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Linux Kernel Commit 43f4df3

  • Debian LTS Security Announcement
  • Vendor Resources
  • Linux Kernel Commit 48068cc

  • Linux Kernel Commit 54bc316

  • Linux Kernel Commit 8ea6073
  • Related CVEs
  • CVE-2026-31430: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31443: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31463: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31459: Linux Kernel Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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