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-2025-38236

CVE-2025-38236: Linux Kernel Use-After-Free Vulnerability

CVE-2025-38236 is a use-after-free vulnerability in the Linux Kernel's af_unix component that allows attackers to trigger memory corruption. This post explains its technical details, affected versions, and mitigation steps.

Updated: January 22, 2026

CVE-2025-38236 Overview

A use-after-free vulnerability exists in the Linux kernel's AF_UNIX socket implementation within the unix_stream_read_generic() function. This vulnerability arises from improper handling of consecutive consumed Out-of-Band (OOB) socket buffers (skbs), which can lead to memory corruption when an attacker manipulates OOB data reception sequences on Unix domain sockets.

Critical Impact

Local attackers can trigger a use-after-free condition that may result in arbitrary code execution, privilege escalation, or system crashes by exploiting the improper handling of OOB socket buffers in Unix domain stream sockets.

Affected Products

  • Linux Kernel (multiple versions including 6.16-rc1, 6.16-rc2, 6.16-rc3)
  • Debian Linux 11.0

Discovery Timeline

  • July 8, 2025 - CVE-2025-38236 published to NVD
  • December 18, 2025 - Last updated in NVD database

Technical Details for CVE-2025-38236

Vulnerability Analysis

This use-after-free vulnerability occurs in the AF_UNIX socket subsystem's handling of out-of-band data. The issue manifests when multiple OOB messages are sent and received in a specific sequence, leaving consumed OOB skbs on the receive queue. The vulnerability was reported by Jann Horn and affects the unix_stream_read_generic() function in net/unix/af_unix.c.

The fundamental problem lies in how consumed OOB skbs are managed on the receive queue. When a user reads OOB data, the skb holding the data remains on the receive queue to mark the OOB boundary and break subsequent receive operations. However, when consecutive consumed OOB skbs accumulate, the manage_oob() function and SO_PEEK_OFF code interact in unexpected ways.

The SO_PEEK_OFF code does not expect unix_skb_len(skb) to return 0, which is the case for consumed OOB skbs. This causes the skip logic to incorrectly traverse the skb queue, leading to a scenario where a not-yet-consumed OOB skb is freed while still being referenced.

Root Cause

The root cause is the failure to properly clean up consecutive consumed OOB skbs from the receive queue. When an OOB skb is received via unix_stream_recv_urg(), the code did not check whether the previous skb was a consumed OOB skb that should be freed. This leads to a queue state where the manage_oob() function returns an incorrect skb reference, and subsequent receive operations access freed memory.

Additionally, the ioctl(SIOCATMARK) operation does not function correctly when consecutive consumed OOB skbs are present, indicating a broader design issue in OOB handling.

Attack Vector

The attack requires local access and low privileges. An attacker must be able to create Unix domain stream sockets and manipulate OOB data transmission and reception sequences. The attack involves:

  1. Creating a pair of connected Unix domain stream sockets
  2. Sending multiple OOB messages while leaving consumed OOB skbs on the receive queue
  3. Triggering a non-OOB receive that incorrectly frees the current OOB skb
  4. Performing an OOB receive that accesses the freed memory

The exploitation sequence demonstrates the vulnerability through a series of send() and recv() operations with and without the MSG_OOB flag, ultimately triggering a KASAN slab-use-after-free detection in unix_stream_read_actor().

Detection Methods for CVE-2025-38236

Indicators of Compromise

  • KASAN (Kernel Address SANitizer) reports showing slab-use-after-free in unix_stream_read_actor or related functions
  • Kernel crash dumps or oops messages referencing net/unix/af_unix.c around line 3027
  • Unexpected system instability when applications use Unix domain sockets with OOB data
  • Abnormal memory access patterns in kernel logs related to socket buffer operations

Detection Strategies

  • Enable KASAN in development and testing environments to detect use-after-free conditions early
  • Monitor kernel logs for stack traces involving unix_stream_read_generic, unix_stream_recvmsg, and sock_recvmsg functions
  • Implement system call tracing to identify unusual patterns of recvfrom calls with MSG_OOB flags on Unix sockets
  • Deploy endpoint detection solutions capable of monitoring kernel-level memory corruption attempts

Monitoring Recommendations

  • Configure kernel crash dump collection to capture detailed information about exploitation attempts
  • Enable audit logging for socket-related system calls to track suspicious Unix domain socket usage patterns
  • Monitor for processes making unusual sequences of OOB sends and receives on socketpairs
  • Implement SentinelOne's Singularity platform for real-time kernel-level threat detection and response

How to Mitigate CVE-2025-38236

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes the fix for consecutive consumed OOB skbs
  • For Debian Linux 11.0 users, apply security updates as described in the Debian LTS Announcement
  • Prioritize patching systems running applications that utilize Unix domain sockets with OOB data features
  • Consider restricting access to socket creation capabilities for untrusted users as a temporary measure

Patch Information

The fix modifies the unix_stream_recv_urg() function to check if the previous skb is a consumed OOB skb and frees it before processing the current OOB message. Multiple patches have been committed to the stable kernel branches:

  • Kernel Commit 32ca2454
  • Kernel Commit 523edfed
  • Kernel Commit 61a9ad7b
  • Kernel Commit 8db4d2d0
  • Kernel Commit a1223786
  • Kernel Commit fad0a2c1

For additional technical details, refer to the Chromium Project Issue 423023990.

Workarounds

  • Restrict untrusted users from creating Unix domain sockets using namespace isolation or seccomp filters
  • Implement application-level controls to avoid OOB data usage on Unix domain sockets where possible
  • Deploy container security policies that limit socket operations for sensitive workloads
  • Use SELinux or AppArmor policies to restrict access to Unix domain socket operations for non-essential services
bash
# Example: Restrict socket creation using seccomp (application-specific)
# This requires application modification to drop unnecessary capabilities
# Consult kernel documentation for seccomp BPF filter implementation
# Alternatively, use container runtime security profiles to limit socket syscalls

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

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.02%

  • 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-416
  • Technical References
  • Chromium Project Issue 423023990

  • Debian LTS Announcement
  • Vendor Resources
  • Linux Kernel Commit Changes

  • Linux Kernel Commit Changes

  • Linux Kernel Commit Changes

  • Linux Kernel Commit Changes

  • Linux Kernel Commit Changes

  • Linux Kernel Commit Changes
  • Related CVEs
  • CVE-2026-31533: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-23427: 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