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
    • 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-2021-25394

CVE-2021-25394: Samsung Android Use After Free Vulnerability

CVE-2021-25394 is a use after free flaw in Samsung Android's MFC charger driver that enables arbitrary writes through race conditions. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-25394 Overview

CVE-2021-25394 is a use-after-free vulnerability triggered by a race condition in the MFC (Multi-Function Charger) charger driver found in Samsung Android devices. This kernel-level vulnerability allows an attacker with compromised radio privileges to achieve arbitrary write capabilities, potentially leading to privilege escalation and device compromise.

Critical Impact

This vulnerability is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Organizations using affected Samsung devices should prioritize immediate patching.

Affected Products

  • Samsung Android 8.1
  • Samsung Android 9.0 (SMR releases prior to MAY-2021 Release 1)
  • Samsung Android 10.0 (SMR releases prior to MAY-2021 Release 1)
  • Samsung Android 11.0 (SMR releases prior to MAY-2021 Release 1)

Discovery Timeline

  • 2021-06-11 - CVE-2021-25394 published to NVD
  • 2025-10-30 - Last updated in NVD database

Technical Details for CVE-2021-25394

Vulnerability Analysis

This vulnerability represents a classic use-after-free condition combined with a race condition in the Samsung MFC charger driver. The MFC charger driver is a kernel-level component responsible for managing the device's charging functionality, including communication with the charging hardware and power management.

The race condition occurs when multiple threads or processes attempt to access shared memory resources within the charger driver simultaneously without proper synchronization. When a memory object is freed by one execution path while another path still holds a reference to it, subsequent operations on that stale reference result in a use-after-free condition.

What makes this vulnerability particularly concerning is that successful exploitation allows arbitrary write operations. An attacker who has already compromised radio privileges can leverage this flaw to write to arbitrary memory locations within the kernel space, potentially modifying critical data structures, disabling security mechanisms, or achieving code execution with elevated privileges.

Root Cause

The root cause stems from inadequate synchronization mechanisms in the MFC charger driver code. The driver fails to properly protect shared resources during concurrent access scenarios, leading to a Time-of-Check Time-of-Use (TOCTOU) race condition. When memory is deallocated in one thread while another thread continues to reference that memory region, the subsequent access leads to undefined behavior that attackers can exploit.

The combination of CWE-416 (Use After Free) and CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization - Race Condition) indicates that the vulnerability requires precise timing to exploit but provides powerful primitive capabilities once triggered.

Attack Vector

The attack requires local access to the device and compromised radio privileges as a prerequisite. An attacker must first gain access to the radio subsystem, potentially through a separate vulnerability in the baseband or modem components. Once radio privileges are obtained, the attacker can trigger the race condition in the MFC charger driver by carefully timing operations to:

  1. Initiate a charger driver operation that allocates memory
  2. Race to free that memory while another operation still references it
  3. Reallocate the freed memory with attacker-controlled content
  4. Trigger the use-after-free to write arbitrary values

The vulnerability mechanism involves manipulating the timing of charger driver operations to create a window where memory state becomes inconsistent. While the local attack vector and high privilege requirements increase the difficulty of exploitation, the confirmed in-the-wild exploitation demonstrates that determined adversaries can successfully leverage this flaw. See the Samsung Mobile Security Update for additional technical details.

Detection Methods for CVE-2021-25394

Indicators of Compromise

  • Unusual kernel crashes or panics related to the MFC charger driver modules
  • Unexpected privilege escalation attempts from processes with radio permissions
  • Abnormal memory allocation patterns in charger-related kernel components
  • System logs showing driver errors or memory corruption in charging subsystems

Detection Strategies

  • Monitor for kernel oops or panic messages referencing MFC charger driver functions
  • Implement behavioral analysis to detect unusual process activity from radio subsystem components
  • Deploy endpoint detection solutions capable of monitoring kernel-level memory operations
  • Check device firmware versions against the SMR MAY-2021 Release 1 baseline

Monitoring Recommendations

  • Enable comprehensive kernel logging to capture driver-related anomalies
  • Implement mobile device management (MDM) solutions to track firmware versions across the fleet
  • Monitor for indicators of baseband or modem compromise that could precede exploitation
  • Review security logs for signs of privilege escalation from radio-privileged processes

How to Mitigate CVE-2021-25394

Immediate Actions Required

  • Update all affected Samsung devices to SMR MAY-2021 Release 1 or later immediately
  • Prioritize patching due to active exploitation and CISA KEV listing
  • Inventory all Samsung Android devices to identify those running vulnerable firmware versions
  • Implement network segmentation to limit exposure of unpatched devices

Patch Information

Samsung has addressed this vulnerability in the SMR MAY-2021 Release 1 security maintenance release. The fix implements proper synchronization mechanisms in the MFC charger driver to prevent the race condition from occurring. Organizations should apply the update through standard Samsung device update channels or enterprise MDM solutions.

For detailed patch information, refer to the Samsung Mobile Security Update for May 2021.

This vulnerability is tracked in the CISA Known Exploited Vulnerabilities Catalog, which mandates federal agencies to remediate within prescribed timeframes.

Workarounds

  • No direct workarounds are available; patching is the only complete remediation
  • Restrict physical access to affected devices until patches can be applied
  • Monitor devices for signs of compromise and isolate suspicious systems
  • Consider temporarily removing affected devices from sensitive network segments until updates are deployed
bash
# Verify Samsung device firmware version via ADB
adb shell getprop ro.build.PDA
adb shell getprop ro.build.version.security_patch
# Compare output against SMR MAY-2021 Release 1 baseline
# Security patch level should be 2021-05-01 or later

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/TechSamsung Android

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.61%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-416

  • CWE-362
  • Technical References
  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Samsung Mobile Security Update
  • Related CVEs
  • CVE-2026-20977: Samsung Android Privilege Escalation Flaw

  • CVE-2026-20978: Samsung Android Auth Bypass Vulnerability

  • CVE-2026-20983: Samsung Android Privilege Escalation Flaw

  • CVE-2026-20982: Samsung Android Path Traversal Flaw
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