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
    • 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-2026-23319

CVE-2026-23319: Linux Kernel Use-After-Free Vulnerability

CVE-2026-23319 is a use-after-free flaw in the Linux kernel's BPF trampoline component that can lead to system crashes. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 27, 2026

CVE-2026-23319 Overview

CVE-2026-23319 is a use-after-free vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) subsystem, specifically within the bpf_trampoline_link_cgroup_shim function. The vulnerability occurs due to improper reference counting when handling BPF trampoline links associated with cgroup shims, creating a race condition window where freed memory can be accessed.

The root cause stems from a timing gap between when bpf_link_put reduces the refcount of shim_link->link.link to zero and when the actual cleanup of tr->progs_hlist occurs in bpf_shim_tramp_link_release. During this deferred cleanup window, another process can reference the already-freed resource via cgroup_shim_find, leading to a use-after-free condition.

Critical Impact

Local attackers with BPF privileges can exploit this use-after-free vulnerability to potentially achieve privilege escalation or cause kernel crashes, impacting system stability and security.

Affected Products

  • Linux Kernel (versions with BPF trampoline cgroup shim support)
  • Systems utilizing BPF cgroup shim functionality
  • Linux distributions with affected kernel versions

Discovery Timeline

  • 2026-03-25 - CVE CVE-2026-23319 published to NVD
  • 2026-03-25 - Last updated in NVD database

Technical Details for CVE-2026-23319

Vulnerability Analysis

This use-after-free vulnerability exists in the BPF trampoline subsystem, which is responsible for managing dynamic function call interception in the Linux kernel. The vulnerability is categorized as a race condition leading to memory corruption.

When a BPF link associated with a cgroup shim is being released, there is a window of opportunity for exploitation. The bpf_link_put function decrements the reference count to zero, signaling that the resource should be freed. However, the actual removal of the link from tr->progs_hlist (the hash list tracking active programs) happens asynchronously in bpf_shim_tramp_link_release.

During this gap, another process executing bpf_trampoline_link_cgroup_shim can discover the stale entry via cgroup_shim_find and attempt to increment its reference count, accessing memory that has already been freed or is in the process of being freed.

Root Cause

The root cause is insufficient synchronization between the reference count decrement operation and the cleanup of the data structure tracking references. When bpf_link_put reduces the refcount to zero, the resource is logically marked for release, but the tr->progs_hlist entry cleanup in bpf_shim_tramp_link_release is deferred. This creates a Time-of-Check Time-of-Use (TOCTOU) race condition where the stale pointer remains discoverable and can be dereferenced after the underlying memory has been freed.

Attack Vector

An attacker with local access and CAP_BPF or CAP_SYS_ADMIN capabilities can exploit this vulnerability by:

  1. Creating a BPF program that utilizes cgroup shim trampolines
  2. Triggering the release of the BPF link while simultaneously attempting to find and use the same shim via another thread
  3. Winning the race condition to access freed memory, potentially corrupting kernel data structures

The vulnerability requires local access and elevated BPF privileges, limiting the attack surface but making it valuable for post-exploitation privilege escalation scenarios. Testing confirmed that the bug was easily reproducible (nearly 100% success rate) before the patch was applied.

The fix adds an atomic non-zero check in bpf_trampoline_link_cgroup_shim that only increments the refcount if it is not already zero, preventing the race condition from being exploitable.

Detection Methods for CVE-2026-23319

Indicators of Compromise

  • Kernel crash reports or oops messages referencing bpf_trampoline_link_cgroup_shim, bpf_shim_tramp_link_release, or cgroup_shim_find
  • Unexpected kernel panics related to BPF subsystem operations
  • Memory corruption indicators in kernel logs with BPF-related call traces similar to previously reported UAF crashes

Detection Strategies

  • Monitor kernel logs for call traces involving bpf_trampoline functions and use-after-free error signatures
  • Deploy kernel memory debugging tools such as KASAN (Kernel Address Sanitizer) which can detect UAF conditions at runtime
  • Implement system call auditing for BPF-related operations to identify unusual patterns of BPF program attachment and detachment

Monitoring Recommendations

  • Enable kernel debugging features on test systems to catch memory safety violations early
  • Monitor for unusual BPF activity patterns, particularly rapid creation and destruction of cgroup-attached BPF programs
  • Review system logs for signs of exploitation attempts or kernel instability related to BPF operations

How to Mitigate CVE-2026-23319

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix commits
  • Restrict access to BPF capabilities (CAP_BPF, CAP_SYS_ADMIN) to only trusted users and processes
  • Consider disabling unprivileged BPF if not required for system operations

Patch Information

Multiple kernel commits have been released to address this vulnerability. The fix adds an atomic non-zero check in bpf_trampoline_link_cgroup_shim to ensure the refcount is only incremented if it is not already zero, eliminating the race condition window.

The following patch commits should be applied:

  • Kernel Commit 3eeddb8
  • Kernel Commit 4e8a000
  • Kernel Commit 529e685
  • Kernel Commit 56145d2
  • Kernel Commit 9b02c5c
  • Kernel Commit cfcfa0c

Workarounds

  • Restrict BPF system call access using seccomp filters for untrusted processes
  • Limit CAP_BPF and CAP_SYS_ADMIN capabilities to essential services only using capability bounding sets
  • Implement SELinux or AppArmor policies to restrict BPF program loading to authorized contexts
bash
# Restrict unprivileged BPF access as a temporary mitigation
echo 2 > /proc/sys/kernel/unprivileged_bpf_disabled

# Verify the setting
cat /proc/sys/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
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Commit 3eeddb8

  • Kernel Commit 4e8a000

  • Kernel Commit 529e685

  • Kernel Commit 56145d2

  • Kernel Commit 9b02c5c

  • Kernel Commit cfcfa0c
  • Related CVEs
  • CVE-2026-23462: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-23456: Linux Kernel Use-After-Free 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