The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-50262

CVE-2024-50262: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-50262 is a buffer overflow flaw in the Linux Kernel's BPF trie implementation that causes out-of-bounds writes. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2024-50262 Overview

CVE-2024-50262 is an out-of-bounds write vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. The vulnerability exists in the trie_get_next_key() function, which incorrectly allocates a node stack with size trie->max_prefixlen while potentially writing trie->max_prefixlen + 1 nodes to the stack when traversing full paths from root to leaves. This off-by-one error can lead to memory corruption, potentially enabling local privilege escalation or system crashes.

Critical Impact

Local attackers with low privileges can exploit this out-of-bounds write vulnerability to corrupt kernel memory, potentially achieving privilege escalation or causing system instability on affected Linux systems.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.12-rc1 through 6.12-rc5
  • Various stable kernel branches requiring backported fixes

Discovery Timeline

  • 2024-11-09 - CVE-2024-50262 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-50262

Vulnerability Analysis

The vulnerability is a classic off-by-one error in memory allocation within the BPF trie data structure implementation. The trie_get_next_key() function is responsible for iterating through keys in a Longest Prefix Match (LPM) trie structure used by BPF programs. During this iteration, the function allocates a stack to track visited nodes during tree traversal.

The root cause lies in the calculation of the required stack size. The function allocates space for trie->max_prefixlen nodes, but when the trie contains a complete path from the root node through all prefix lengths to a leaf node, the actual number of nodes written is trie->max_prefixlen + 1. This discrepancy occurs because the allocation doesn't account for the root node in addition to all prefix-length nodes.

For instance, with a trie configured with max_prefixlen of 8, inserting nodes with keys 0x00/0, 0x00/1, 0x00/2, through 0x00/8 creates a full path of 9 nodes. When trie_get_next_key is called with a key having .prefixlen = 8, it attempts to write 9 nodes onto a stack sized for only 8, resulting in an out-of-bounds write.

Root Cause

The vulnerability stems from an incorrect buffer size calculation in the trie_get_next_key() function. The allocated node stack uses trie->max_prefixlen as its size, but the actual maximum number of nodes that can be written during traversal is trie->max_prefixlen + 1 due to the inclusion of the root node. This off-by-one allocation error is classified as CWE-787 (Out-of-bounds Write).

Attack Vector

The attack requires local access to the system with the ability to interact with BPF maps. An attacker would need to:

  1. Create or access an LPM trie BPF map with a specific max_prefixlen configuration
  2. Insert a carefully crafted sequence of keys that creates a full path from root to leaf
  3. Trigger the trie_get_next_key() operation to cause the out-of-bounds write
  4. Leverage the memory corruption for privilege escalation or denial of service

The vulnerability requires local access and low privileges, making it exploitable by unprivileged users on systems where BPF functionality is accessible. The exploitation can lead to high impact on confidentiality, integrity, and availability as kernel memory can be corrupted.

Detection Methods for CVE-2024-50262

Indicators of Compromise

  • Unexpected kernel crashes or oops messages related to BPF trie operations
  • Memory corruption errors in kernel logs referencing trie_get_next_key or LPM map functions
  • Unusual BPF map operations from unprivileged processes attempting to access LPM trie maps

Detection Strategies

  • Monitor for kernel panic or oops messages containing references to trie_get_next_key, bpf, or LPM trie functions
  • Implement audit logging for BPF syscalls and map operations, particularly focusing on LPM trie map types
  • Use kernel address sanitizer (KASAN) in development environments to detect out-of-bounds writes during testing

Monitoring Recommendations

  • Enable kernel auditing for BPF-related syscalls (bpf() syscall)
  • Configure crash dump collection to capture kernel state for post-incident analysis
  • Monitor system logs for signs of memory corruption or unexpected kernel behavior related to networking subsystems

How to Mitigate CVE-2024-50262

Immediate Actions Required

  • Update the Linux kernel to a patched version that addresses CVE-2024-50262
  • On systems where immediate patching is not possible, consider restricting BPF access through sysctl settings (kernel.unprivileged_bpf_disabled=1)
  • Review systems for any signs of exploitation and monitor for unusual BPF activity

Patch Information

The Linux kernel maintainers have released patches across multiple stable branches. The fix increases the node stack allocation to properly account for the root node, preventing the out-of-bounds write condition. Patches are available through the following kernel git commits:

  • Kernel Git Commit 13400ac
  • Kernel Git Commit 590976f
  • Kernel Git Commit 86c8ebe
  • Kernel Git Commit 90a6e0e

Additionally, Debian LTS security announcements have been issued for affected distributions.

Workarounds

  • Disable unprivileged BPF access by setting kernel.unprivileged_bpf_disabled=1 via sysctl
  • Restrict access to BPF functionality through SELinux or AppArmor policies for untrusted users
  • Limit container capabilities to prevent BPF operations from containerized workloads
bash
# Disable unprivileged BPF access as a workaround
echo 1 > /proc/sys/kernel/unprivileged_bpf_disabled

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

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Debian LTS Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23447: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31395: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31402: Linux Kernel Buffer Overflow Vulnerability
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