Out-of-bounds write in Samsung Mobile Firmware - CVE-2025-21042

 

Out-of-bounds write in Samsung Mobile Firmware - CVE-2025-21042

Published: November 14, 2025


Vulnerability identifier: #VU118554
CSH Severity: Critical
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Red
CVE-ID: CVE-2025-21042
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Samsung
Affected software:
Samsung Mobile Firmware

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error in libimagecodec.quram.so. A remote attacker can create a specially crafted image file, trick the victim into opening it, trigger an out-of-bounds write and execute arbitrary code on the target system.

Note, the vulnerability is being actively exploited in the wild. 


How to mitigate CVE-2025-21042

Install updates from vendor's website.

Sources