Out-of-Bounds Write Vulnerability in Samsung's Image Codec Library

Patch nowFull system takeover over the network if a user is tricked.
8.8HIGH

CVE-2025-21042

Key Information:

Vendor

Samsung

CVE ID
CVE ID:
CVE-2025-21042
Vendor
CVE Published:
12 September 2025

Timeline

Exploit known 56 days after it was published

  • ๐Ÿฅ‡

    Vulnerability reached the number 1 worldwide trending spot

  • ๐Ÿฆ…

    CISA Reported

  • ๐Ÿ“ˆ

    Vulnerability started trending

  • ๐Ÿ’ฐ

    Used in Ransomware

  • ๐Ÿ‘พ

    Exploit known to exist

  • ๐Ÿ“ฐ

    First article discovered by SecurityWeek

  • Vulnerability published

  • Vulnerability Reserved

Badges

๐Ÿฅ‡ Trended No. 1๐Ÿ“ˆ Trended๐Ÿ“ˆ Score: 5,420๐Ÿ’ฐ Ransomware๐Ÿ‘พ Exploit Exists๐ŸŸฃ EPSS 35%๐Ÿฆ… CISA Reported๐Ÿ“ฐ News Worthy

How risky is it?

  • Partly: Works over the network, but a user must act
  • Partly: Exploitation or a working exploit reported
  • Yes: Attacked in the wild (on CISA's KEV list)
  • Yes: Used by ransomware

Our verdict

Patch now

Attackers are using it. Patch or mitigate today.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory โ†—
2Follow CISA's required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

3Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Samsung Devices. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

4Look for signs of compromise

It is being exploited in the wild, so check logs on exposed Samsung Devices systems for unusual requests or new processes from before you patched.

5Why it's rated "Patch now"
  • CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
  • Ransomware groups use it.
  • Exploitation or a working exploit has been reported.
  • EPSS gives it a 35.6% chance of exploitation in the next 30 days.
  • Its CVSS severity is high (8.8).

What is CVE-2025-21042?

CVE-2025-21042 is an out-of-bounds write vulnerability in Samsung's Image Codec Library, specifically in the libimagecodec.quram.so component. This flaw allows remote attackers to execute arbitrary code on affected Samsung devices. The vulnerability can be triggered through specially crafted image files, leading to unauthorized actions on the device.

The vulnerability has been exploited in the wild, with attackers using it to install commercial-grade spyware on smartphones. Samsung released a patch for this issue in April 2025.

Potential Impact of CVE-2025-21042

  1. Arbitrary Code Execution: Attackers can execute arbitrary code on affected devices, potentially leading to full control over the device.

  2. Spyware Installation: Successful exploitation allows attackers to install spyware, compromising user privacy and data security.

CISA has reported CVE-2025-21042

CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2025-21042 as being exploited . Our sources show ransomware groups using it, even though CISA's catalog does not flag ransomware use yet.

The CISA's recommendation is: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Affected Version(s)

Samsung Mobile Devices SMR Apr-2025 Release in Android 13, 14, 15

News Articles

Week in review: Windows kernel flaw patched, suspected Fortinet FortiWeb zero-day exploited - Help Net Security

Hereโ€™s an overview of some of last weekโ€™s most interesting news, articles, interviews and videos: Adopting a counterintelligence mindset in luxury

Is Your Samsung Smartphone Protected? CISA Issues 21-Day Spyware Warning

Following confirmation of a Samsung smartphone spyware zero-day attack, the Cybersecurity and Infrastructure Security Agency urges organizations to update now.

favicon imageHelp Net Security

CISA: Patch Samsung flaw exploited to deliver spyware (CVE-2025-21042) - Help Net Security

CISA has added CVE-2025-21042, a vulnerability affecting Samsung mobile devices that has been used to deliver spyware, to its KEV catalog.

References

Buffer Overflow in libimagecodec.quram.so

CVE-2026-21095
SamsungSamsung Devices9.2CRITICAL

Use After Free in PROCA Driver

CVE-2026-20971
SamsungSamsung Devices๐Ÿ‘พ7.3HIGH

Out-of-bounds Write in libimagecodec.quram.so

CVE-2025-21043
SamsungSamsung Devices๐Ÿ˜„๐Ÿ‘พ8.8HIGH
View more Samsung vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

EPSS Score

35% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged
.