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

CVE-2025-21042: Samsung Android RCE Vulnerability

CVE-2025-21042 is a remote code execution vulnerability in Samsung Android's libimagecodec library that enables attackers to execute arbitrary code remotely. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2025-21042 Overview

CVE-2025-21042 is a critical out-of-bounds write vulnerability in Samsung's libimagecodec.quram.so library, a core image processing component used in Samsung Android devices. This vulnerability allows remote attackers to execute arbitrary code on affected devices without requiring any user interaction or authentication. The flaw exists in versions prior to the SMR Apr-2025 Release 1 security update.

Critical Impact

This vulnerability is actively being exploited in the wild and has been added to CISA's Known Exploited Vulnerabilities (KEV) catalog. Remote attackers can achieve full device compromise by exploiting the memory corruption flaw in the image codec library, potentially gaining complete control over affected Samsung devices.

Affected Products

  • Samsung Android 13.0 (all SMR releases prior to Apr-2025 Release 1)
  • Samsung Android 14.0 (all SMR releases prior to Apr-2025 Release 1)
  • Samsung Android 15.0 (versions prior to Apr-2025 Release 1)

Discovery Timeline

  • September 12, 2025 - CVE CVE-2025-21042 published to NVD
  • November 12, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21042

Vulnerability Analysis

The vulnerability resides in libimagecodec.quram.so, Samsung's proprietary image codec library developed by Quram. This shared library handles image decoding and encoding operations on Samsung Android devices. The out-of-bounds write condition (CWE-787) occurs during image processing operations, where improper boundary validation allows an attacker to write data beyond the allocated memory buffer.

According to Palo Alto Unit 42's analysis, this vulnerability has been associated with commercial-grade Android spyware campaigns. The exploitation requires no privileges and can be triggered remotely over the network without user interaction, making it particularly dangerous for mobile device security.

The network-accessible nature of this vulnerability combined with the lack of required authentication creates a scenario where attackers can target devices simply by sending a malicious image to the victim. When the image is processed by the vulnerable codec library, the out-of-bounds write is triggered, leading to memory corruption that can be leveraged for code execution.

Root Cause

The root cause is insufficient bounds checking in the image decoding routines within libimagecodec.quram.so. When processing specially crafted image data, the library fails to properly validate the size and boundaries of input data before writing to memory buffers. This allows attackers to write arbitrary data beyond the intended buffer boundaries, corrupting adjacent memory regions and enabling control flow hijacking.

Attack Vector

The attack vector for CVE-2025-21042 is network-based remote exploitation. An attacker can craft a malicious image file containing specially designed payload data and deliver it to a target device through various channels such as messaging applications, email, web browsing, or MMS. When the vulnerable libimagecodec.quram.so library attempts to process the malicious image, the out-of-bounds write is triggered. The attacker can leverage this memory corruption to achieve arbitrary code execution with the privileges of the process handling the image, potentially gaining persistent access to the device.

Detection Methods for CVE-2025-21042

Indicators of Compromise

  • Unusual process crashes or restarts in media processing services on Samsung devices
  • Unexpected network connections originating from image processing or gallery applications
  • Presence of unknown or suspicious files created after image viewing activities
  • Anomalous memory usage patterns in processes utilizing libimagecodec.quram.so

Detection Strategies

  • Monitor for abnormal crashes in media-related processes such as the gallery app or messaging services
  • Implement Mobile Device Management (MDM) solutions to verify Samsung Security Maintenance Release (SMR) patch levels
  • Deploy mobile threat detection solutions capable of identifying exploitation attempts against image codec libraries
  • Analyze network traffic for suspicious image file downloads from untrusted sources

Monitoring Recommendations

  • Enable detailed logging on MDM platforms to track device patch compliance
  • Configure alerts for devices running Samsung Android versions prior to SMR Apr-2025 Release 1
  • Monitor for indicators associated with the Landfall spyware campaign as documented by Unit 42
  • Implement SentinelOne Mobile Threat Defense to detect and prevent exploitation attempts on enterprise mobile devices

How to Mitigate CVE-2025-21042

Immediate Actions Required

  • Apply the Samsung Security Maintenance Release (SMR) Apr-2025 Release 1 update immediately on all affected devices
  • For organizations with unpatched devices, consider restricting MMS and automatic image downloading until patches can be applied
  • Isolate devices that cannot be immediately patched from sensitive network resources
  • Verify patch deployment through MDM reporting and compliance dashboards

Patch Information

Samsung has addressed this vulnerability in the SMR Apr-2025 Release 1 security update. The patch is available through the Samsung Security Update Portal. Organizations should ensure all Samsung Android 13.0, 14.0, and 15.0 devices are updated to at least the April 2025 SMR release. Due to the active exploitation of this vulnerability and its inclusion in CISA's Known Exploited Vulnerabilities catalog, federal agencies and critical infrastructure organizations have mandatory patching timelines.

Workarounds

  • Disable automatic image downloading in messaging applications and email clients
  • Configure devices to block MMS auto-retrieval until the patch is applied
  • Use enterprise Mobile Threat Defense solutions like SentinelOne to provide runtime protection
  • Restrict access to untrusted image sources through network filtering and web security policies
bash
# Verify Samsung Android security patch level via ADB
adb shell getprop ro.build.version.security_patch
# Expected output for patched devices: 2025-04-01 or later

# Check for vulnerable library presence
adb shell ls -la /system/lib64/libimagecodec.quram.so

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSamsung Android

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.84%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-787
  • Technical References
  • Palo Alto Unit 42 Analysis

  • CISA Known Exploited Vulnerability CVE-2025-21042
  • Vendor Resources
  • Samsung Security Update April 2025
  • Related CVEs
  • CVE-2026-20981: Samsung Android RCE Vulnerability

  • CVE-2026-20980: Samsung Android RCE Vulnerability

  • CVE-2021-25371: Samsung Android DSP Driver RCE Flaw

  • CVE-2021-25487: Samsung Android RCE Vulnerability
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