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: 8.4 [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]
CVE-ID: CVE-2025-21042
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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. 


Affected software

Samsung Mobile Firmware

How to mitigate CVE-2025-21042

Install updates from vendor's website.

Samsung Mobile Firmware - update to SMR-APR-2025

External References

Related Security Bulletins