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-71074

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

CVE-2025-71074 is a use-after-free vulnerability in the Linux kernel functionfs component that causes race conditions during file operations. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-71074 Overview

A race condition vulnerability has been identified in the Linux kernel's FunctionFS subsystem. The vulnerability exists in the ffs_epfile_open() function, which can race with file removal operations, resulting in file->private_data pointing to a freed memory object. This Use-After-Free (UAF) condition can be triggered when one thread is opening a file while another thread is removing it, leading to potential memory corruption.

Critical Impact

Successful exploitation of this race condition can lead to Use-After-Free vulnerabilities on subsequent read() or write() operations, potentially allowing attackers to execute arbitrary code or cause system instability.

Affected Products

  • Linux kernel (FunctionFS subsystem)
  • Systems utilizing USB gadget functionality with FunctionFS

Discovery Timeline

  • 2026-01-13 - CVE CVE-2025-71074 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2025-71074

Vulnerability Analysis

The vulnerability stems from improper synchronization in the FunctionFS endpoint file handling code. FunctionFS maintains a total count of opened files (both ep0 and dynamic ones), and when this count reaches zero, dynamic files are removed. The race condition occurs because this removal can happen while another thread is executing ffs_epfile_open() but has not yet incremented the file count.

The root cause lies in the misuse of ffs->opened counter operations. The combination of atomic_dec_and_test() versus atomic_add_return() creates a window where the object remains visible even though it may be in the process of being freed. When the open operation succeeds under these conditions, any subsequent read() or write() operations will access freed memory, creating a classic Use-After-Free scenario.

Root Cause

The vulnerability originates from inadequate synchronization between file open and removal operations in the FunctionFS subsystem. Specifically:

  1. The ffs->opened atomic counter was being used in a non-atomic compound operation pattern
  2. The file object remained visible while removal was in progress
  3. No proper serialization existed between openers attempting to access the same file structure

Attack Vector

An attacker with local access to a system utilizing FunctionFS (commonly found in USB gadget implementations) could potentially trigger this race condition by:

  1. Creating multiple threads that simultaneously open and close FunctionFS endpoint files
  2. Timing the operations to hit the race window between the file count check and the removal operation
  3. Once the UAF condition is achieved, manipulating the freed memory to gain code execution or escalate privileges

The vulnerability requires local access to the affected system and the ability to interact with FunctionFS device files. The attack complexity is moderate due to the timing-sensitive nature of race conditions.

Detection Methods for CVE-2025-71074

Indicators of Compromise

  • Kernel oops or panic messages referencing FunctionFS (functionfs, ffs_epfile_open, or ffs_ep0_open)
  • Unexpected memory corruption errors in USB gadget related processes
  • System instability when USB gadget functionality is heavily utilized
  • KASAN (Kernel Address Sanitizer) reports indicating Use-After-Free in FunctionFS code paths

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) to detect Use-After-Free conditions in the kernel
  • Monitor kernel logs for warnings or errors related to FunctionFS and USB gadget operations
  • Deploy runtime memory integrity monitoring tools that can detect UAF exploitation attempts
  • Audit systems for unusual patterns of FunctionFS file operations that may indicate exploitation attempts

Monitoring Recommendations

  • Implement kernel log monitoring with alerts for FunctionFS-related errors and memory corruption warnings
  • Monitor for unusual USB gadget device activity patterns on affected systems
  • Enable kernel debugging features on development and testing systems to catch race conditions early
  • Review system crash dumps for evidence of exploitation targeting this vulnerability

How to Mitigate CVE-2025-71074

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes the fix for this vulnerability
  • Limit access to FunctionFS device files to trusted users and processes only
  • Consider disabling FunctionFS or USB gadget functionality if not required
  • Monitor systems for signs of exploitation attempts until patches can be applied

Patch Information

The vulnerability has been resolved in the Linux kernel with commits that implement proper synchronization for file open operations. The fix includes:

  1. Serializing openers on ffs->mutex for both ep0 and dynamic files
  2. Using atomic_inc_not_zero() for dynamic files to fail gracefully when the opened count is already zero
  3. Marking inodes of dynamic files on removal by clearing ->i_private in the callback of simple_recursive_removal()
  4. Adding verification during open of dynamic files to check they haven't been removed and that the state is FFS_ACTIVE

Patch commits are available at:

  • Kernel Git Commit b49c766856fb
  • Kernel Git Commit e5bf5ee26663

Workarounds

  • Restrict access to FunctionFS device files using file system permissions to limit exposure
  • Disable USB gadget functionality via kernel configuration if the feature is not required for system operation
  • Implement additional access controls using security modules (SELinux, AppArmor) to limit which processes can access FunctionFS
  • Isolate USB gadget operations to single-threaded processes where possible to reduce race condition likelihood
bash
# Restrict access to FunctionFS mount points
chmod 700 /dev/usb-ffs/*
chown root:root /dev/usb-ffs/*

# Alternatively, disable USB gadget functionality if not needed
# Add to kernel command line or modprobe blacklist
echo "blacklist usb_f_fs" >> /etc/modprobe.d/blacklist-usbgadget.conf

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

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit Notice

  • Kernel Git Commit Notice
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

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

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

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