What is Samsung's libimagecodec.quram.so?
libimagecodec.quram.so is Samsung's proprietary image codec library (Quram) that automatically decodes image files received via messaging apps, email, and MMS on Samsung Galaxy devices. See CVE-2025-21043 for the full library context. CVE-2025-21042 is a distinct OOB write in the same library, patched in the April 2025 SMR for Android 13 and 14.
Overview
CVE-2025-21042 is a use-after-free/out-of-bounds write vulnerability (CWE-787) in Samsung's libimagecodec.quram.so that was patched in the April 2025 Samsung Security Maintenance Release (SMR) for Android 13 and 14 devices. Unlike companion CVE-2025-21043 (which was reported by Meta/WhatsApp and patched in September 2025), CVE-2025-21042 was linked by Palo Alto Networks Unit 42 to "Landfall" — a commercial-grade Android surveillance software platform — in exploitation observed before the April 2025 patch.
Affected Versions
| Platform | Vulnerable | Fixed |
|---|---|---|
| Samsung Android 13 | Before SMR Apr-2025 Release 1 | SMR Apr-2025 Release 1 |
| Samsung Android 14 | Before SMR Apr-2025 Release 1 | SMR Apr-2025 Release 1 |
Note: Android 15 and 16 were addressed by a related fix; Samsung Android 15/16 users should apply the September 2025 SMR (CVE-2025-21043) for complete protection of the same library.
Technical Details
The out-of-bounds write (CWE-787) occurs in libimagecodec.quram.so's image parsing path — distinct from but related to the bug in CVE-2025-21043. A crafted image file triggers a bounds check failure during decoding, allowing writes beyond the allocated buffer. The two vulnerabilities likely originate from different functions or format handlers within the same library, both sharing the characteristic of being exploitable via maliciously crafted image delivery.
Key differentiation from CVE-2025-21043:
- Affects only Android 13–14 (not 15–16 in this bulletin)
- Patched in April 2025 SMR (five months before CVE-2025-21043's September 2025 SMR)
- Linked by Unit 42 to Landfall commercial spyware platform
- CVE published September 2025 despite the April 2025 patch — reflecting delayed CVE assignment
Discovery
Samsung internally identified (SVE-2024-1969, September 25, 2024). Unit 42 (Palo Alto Networks) subsequently linked exploitation to the Landfall commercial spyware platform.
Exploitation Context
Palo Alto Networks Unit 42 attributed active exploitation of CVE-2025-21042 to Landfall — a commercial-grade Android surveillance software platform used in targeted monitoring operations. CISA added it to the KEV catalog on November 10, 2025 with a December 1 deadline. The Landfall attribution indicates government or law enforcement customers were paying for exploits against Samsung devices using this vulnerability.
Remediation
- Install Samsung April 2025 SMR or later on Android 13–14 Samsung devices. Check Settings → Software update.
- Install September 2025 SMR for complete protection — CVE-2025-21043 (companion vulnerability) is patched in the September bulletin.
- Enable Samsung's automatic security updates so future SMRs apply without manual intervention.
- High-risk individuals facing potential Landfall-style surveillance targeting should consult a security specialist and consider device reset/replacement as a precaution if the April 2025 patch was not applied promptly.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2025-21042 |
| Vendor / Product | Samsung — Mobile Devices |
| NVD Published | 2025-09-12 |
| NVD Last Modified | 2025-11-12 |
| CVSS 3.1 Score | 8.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-787 find similar ↗ |
| CISA KEV Added | 2025-11-10 |
| CISA KEV Deadline | 2025-12-01 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2024-09-25 | Vulnerability internally identified (SVE-2024-1969) |
| 2025-04-01 | Samsung April 2025 SMR released with fix for Android 13–14 |
| 2025-09-12 | CVE published |
| 2025-11-10 | Added to CISA Known Exploited Vulnerabilities catalog (linked to Landfall commercial spyware by Unit 42) |
| 2025-12-01 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Samsung Security Maintenance Release — April 2025 | Vendor Advisory |
| NVD — CVE-2025-21042 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |