Security Advisory

CVE-2025-21042: Samsung Quram Image Codec RCE (LANDFALL)

Last updated:
  • CVE-2025-21042

CVE-2025-21042 is an out-of-bounds write in libimagecodec.quram.so, the image codec library on Samsung Galaxy phones, that lets a remote attacker run code through a crafted image. NVD scores it 9.8 and CISA lists it in KEV. It affects Android 13, 14 and 15; Samsung fixed it in SMR Apr-2025 Release 1.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

35.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2025-21042 · Source: NVD

Affected components

ComponentCPEVersion range
Samsung Mobile Devices: libimagecodec.quram.so (Samsung image codec library)cpe:2.3:o:samsung:android:15.0:-:*:*:*:*:*:*Android 13, 14 and 15 before SMR Apr-2025 Release 1 (Samsung SVE-2024-1969; NVD CPEs list Samsung Android 13.0 and 14.0 up to SMR Mar-2025 and 15.0 up to SMR Mar-2025); fixed in SMR Apr-2025 Release 1 or later
Galaxy models named in LANDFALL samples: Galaxy S22, S23 series, S24 series, Z Fold4, Z Flip4—Device models targeted by the spyware per Unit 42 (not Samsung's full affected list); covered by the same SMR Apr-2025 fix

What does this mean for affected devices?

The CVE record, published by Samsung Mobile on 2025-09-12, reads: "Out-of-bounds write in libimagecodec.quram.so prior to SMR Apr-2025 Release 1 allows remote attackers to execute arbitrary code." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with CWE-787. Samsung, the CNA, scores it 8.8 with user interaction required (UI:R). NVD's CPE configuration marks Samsung Android 13.0 and 14.0 up to SMR Mar-2025 and Android 15.0 up to SMR Mar-2025 as vulnerable (NVD, CVE record).

Which Samsung devices and firmware are affected?

Samsung's SMR April 2025 bulletin lists it as SVE-2024-1969, "Out-of-bounds write in libimagecodec.quram.so", severity Critical, affected versions Android 13, 14 and 15, reported on 25 September 2024 and privately disclosed; "The patch adds proper input validation." Unit 42 says Samsung assigned the CVE number in September 2025, when it patched the related CVE-2025-21043. The library is Samsung's own image codec, so the exposure is Galaxy phones and tablets on those Android versions rather than other Android brands. Samsung's bulletin does not list models; the device model strings Unit 42 found in the spyware were Galaxy S22, the S23 and S24 series, Galaxy Z Fold4 and Z Flip4.

Was CVE-2025-21042 exploited?

Yes. Palo Alto Networks Unit 42 (7 November 2025), which the CVE record cites, describes LANDFALL, commercial-grade Android spyware delivered in malformed DNG image files that appear to have been sent via WhatsApp. Samples date from July 2024 to February 2025, months before the April 2025 fix, and VirusTotal submission data points to targets in Iraq, Iran, Turkey and Morocco. Unit 42 says the chain possibly involved zero-click delivery. A second flaw in the same library, CVE-2025-21043, was fixed in September 2025 after WhatsApp reported in-the-wild exploitation.

How do you fix it?

Install the Samsung firmware update that carries SMR Apr-2025 Release 1 or later. Samsung notes that delivery time of security patches varies by region and model, so check the device's security patch level rather than assuming the update arrived. CISA's required action is to apply mitigations per vendor instructions, follow BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable; devices that no longer receive Samsung updates fall under the last option. For device makers, our memory corruption fix guide covers bounds checks in image and file parsers.

KEV and EPSS status

CISA added CVE-2025-21042 to KEV on 2025-11-10 as "Samsung Mobile Devices Out-of-Bounds Write Vulnerability", due 2025-12-01; known ransomware campaign use is Unknown. It is listed as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives it 0.35679, the 98.49th percentile, in the 2026-11-24 dataset (CISA KEV, FIRST EPSS). Our KEV and EPSS prioritization guide explains how to rank a fleet update like this one.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: status Analyzed; [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; Samsung Secondary 8.8 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; CWE-787; CPEs samsung android 13.0/14.0/15.0 up to smr-mar-2025-r1; published 2025-09-12; read 2026-11-25. — NVD
  • CVE record (assigner SamsungMobile): Samsung Mobile Devices, unaffected "SMR Apr-2025 Release in Android 13, 14, 15", default affected; references Samsung April 2025 bulletin and Unit 42. — CVE.org
  • Samsung SMR-APR-2025: SVE-2024-1969 (CVE-2025-21042) Out-of-bounds write in libimagecodec.quram.so, Severity Critical, Affected versions Android 13, 14, 15, Reported on September 25, 2024, privately disclosed; patch adds proper input validation. Disclaimer: delivery time varies by region and model. — Samsung Mobile Security
  • Unit 42, published November 7, 2025: LANDFALL spyware delivered via malformed DNG files exploiting CVE-2025-21042, apparently sent via WhatsApp; samples July 2024 to February 2025; reported to Samsung Sept. 25, 2024, fixed April 2025; targeted models Galaxy S22, S23 series, S24 series, Z Fold4, Z Flip4; potential targets Iraq, Iran, Turkey, Morocco; possibly zero-click. — Palo Alto Networks Unit 42
  • CISA KEV catalog version 2026.11.24: CVE-2025-21042 added 2025-11-10, due 2025-12-01, required action apply mitigations per vendor instructions, follow BOD 22-01 for cloud services, or discontinue use; knownRansomwareCampaignUse Unknown. — CISA KEV
  • EPSS 0.35679, percentile 0.98486, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE record: CVE-2025-21042
  3. Samsung Mobile Security: SMR April 2025 (SVE-2024-1969)
  4. Unit 42: LANDFALL Android spyware
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which Samsung update fixes CVE-2025-21042?

SMR Apr-2025 Release 1. Samsung lists the flaw as SVE-2024-1969 for Android 13, 14 and 15, so a Galaxy device on any of those versions needs firmware with that maintenance release or later (per Samsung's April 2025 bulletin and the CVE record).

Does CVE-2025-21042 affect non-Samsung Android phones?

The flaw is in libimagecodec.quram.so, which the CVE record and Samsung's bulletin attribute to Samsung Mobile Devices, and the fix ships in Samsung's own maintenance release rather than the Google Android bulletin. The sources name only Samsung devices (per the CVE record and Samsung's bulletin).

How was CVE-2025-21042 exploited?

Unit 42 found LANDFALL spyware delivered in malformed DNG images that appear to have been sent via WhatsApp, with samples from July 2024 to February 2025 and targets in the Middle East. The fix arrived in April 2025 (per Unit 42).

Is CVE-2025-21042 in CISA KEV?

Yes. CISA added it on 2025-11-10 with a due date of 2025-12-01, and it is listed as of 2026-11-25 (catalog version 2026.11.24) with ransomware use Unknown. FIRST EPSS gives 0.35679, the 98.49th percentile, in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS).