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

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

CVE-2025-37738 is a use-after-free vulnerability in the Linux Kernel ext4 filesystem that can cause memory corruption. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-37738 Overview

CVE-2025-37738 is a use-after-free vulnerability in the Linux kernel's ext4 filesystem implementation. The flaw exists in the ext4_xattr_inode_dec_ref_all function, which fails to properly validate extended attribute (xattr) entries before processing them. When iterating through xattr entries, the function does not check if entries extend past the designated 'end' boundary, leading to access of freed memory regions.

This vulnerability was identified through KASAN (Kernel Address Sanitizer) which detected a slab-use-after-free condition when processing extended attributes during inode eviction operations. The issue specifically manifests when the do_unlinkat syscall triggers inode cleanup, causing the vulnerable code path to read from a freed 360-byte slab cache object belonging to the filp cache.

Critical Impact

Local attackers with low privileges can exploit this use-after-free condition to potentially achieve local privilege escalation, execute arbitrary code in kernel context, or cause system instability through kernel memory corruption.

Affected Products

  • Linux Kernel (multiple stable branches)
  • Debian Linux 11.0

Discovery Timeline

  • May 1, 2025 - CVE-2025-37738 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2025-37738

Vulnerability Analysis

The vulnerability resides in the ext4 filesystem's extended attribute handling code, specifically within the ext4_xattr_inode_dec_ref_all function. Extended attributes (xattrs) in ext4 allow users and applications to associate metadata with files beyond standard POSIX attributes. When an inode is deleted or evicted, the kernel must properly clean up any extended attribute references.

The vulnerable function iterates through xattr entries stored in an inode but fails to properly validate that each entry falls within valid memory bounds. The code continues processing xattr entries even after reaching what should be the 'end' marker, resulting in reads from memory that has already been freed and potentially reallocated for other purposes.

The KASAN trace reveals that the use-after-free occurs at offset 196 bytes within a freed 360-byte region from the filp slab cache. This indicates that during inode eviction via ext4_evict_inode, the call chain progresses through ext4_xattr_delete_inode to ext4_xattr_inode_dec_ref_all, where the invalid memory access occurs.

Root Cause

The root cause is a missing boundary check in ext4_xattr_inode_dec_ref_all. The function should validate that each xattr entry it processes falls within the valid memory region bounded by the 'end' pointer before accessing the entry's data. Without this check, the iteration can continue past valid entries and into freed memory, triggering the use-after-free condition.

The fix requires adding a check to ensure xattr entries past the 'end' entry are ignored, preventing the function from reading beyond the valid xattr data region.

Attack Vector

Exploitation requires local access to a system running an affected Linux kernel version with ext4 filesystems. An attacker would need to craft a malicious filesystem image or manipulate extended attributes in a way that triggers the vulnerable code path during inode eviction.

The attack flow involves:

  1. Creating files with crafted extended attributes on an ext4 filesystem
  2. Triggering the file deletion path via unlinkat syscall
  3. Racing the inode eviction to ensure memory is freed and reallocated
  4. The use-after-free can then read or write to attacker-controlled data

The exploitation is triggered during the do_unlinkat syscall execution path, which eventually calls ext4_evict_inode and subsequently the vulnerable xattr cleanup functions.

Detection Methods for CVE-2025-37738

Indicators of Compromise

  • KASAN kernel log messages indicating "slab-use-after-free in ext4_xattr_inode_dec_ref_all"
  • Kernel oops or panic messages referencing the ext4_xattr_inode_dec_ref_all function
  • Unexpected system crashes during file deletion operations on ext4 filesystems
  • Kernel memory corruption warnings in dmesg related to ext4 xattr handling

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) on test systems to detect memory corruption issues
  • Monitor kernel logs for ext4-related error messages, particularly those involving xattr functions
  • Deploy kernel-level runtime detection mechanisms that identify use-after-free patterns
  • Implement file integrity monitoring to detect unexpected behavior during file operations

Monitoring Recommendations

  • Configure auditd to log all file deletion operations on critical ext4 partitions
  • Set up kernel log monitoring for patterns matching "ext4_xattr" combined with memory errors
  • Use SentinelOne's kernel-level monitoring to detect abnormal ext4 filesystem behavior
  • Deploy canary files with extended attributes to detect potential exploitation attempts

How to Mitigate CVE-2025-37738

Immediate Actions Required

  • Apply the latest kernel security patches from your Linux distribution immediately
  • Prioritize patching systems that allow local user access or container workloads
  • Consider temporarily restricting extended attribute operations via mount options if patching is delayed
  • Enable KASAN on development and staging systems to detect similar vulnerabilities

Patch Information

Multiple patches have been released across different Linux kernel stable branches to address this vulnerability. The fix ensures that ext4_xattr_inode_dec_ref_all properly ignores xattr entries that extend past the 'end' boundary.

Patches are available from the following kernel git commits:

  • Kernel Git Commit 362a90c
  • Kernel Git Commit 3bc6317
  • Kernel Git Commit 6aff941
  • Kernel Git Commit 76c365f
  • Kernel Git Commit 836e625

Debian users should refer to the Debian LTS Security Announcements for updated packages.

Workarounds

  • Restrict local user access to systems running vulnerable kernel versions until patching is complete
  • Consider using alternative filesystems (XFS, btrfs) for sensitive operations where ext4 xattr usage is not required
  • Limit the use of extended attributes on critical filesystems through SELinux or AppArmor policies
  • Enable additional kernel hardening options such as KASLR and stack protectors to make exploitation more difficult
bash
# Check current kernel version for vulnerability status
uname -r

# Verify ext4 xattr status on mounted filesystems
mount | grep ext4

# Update kernel on Debian-based systems
sudo apt update && sudo apt upgrade linux-image-$(uname -r)

# Reboot to apply new kernel
sudo systemctl reboot

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.01%

  • 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
  • Debian LTS Announcement May 2025

  • Debian LTS Announcement May 2025
  • Vendor Resources
  • Kernel Git Commit 362a90c

  • Kernel Git Commit 3bc6317

  • Kernel Git Commit 6aff941

  • Kernel Git Commit 76c365f

  • Kernel Git Commit 836e625

  • Kernel Git Commit c8e008b

  • Kernel Git Commit cf9291a

  • Kernel Git Commit eb59cc3

  • Kernel Git Commit f737418
  • Related CVEs
  • CVE-2026-23427: Linux Kernel Use-After-Free Vulnerability

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

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

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