CVE-2025-21042 Samsung Mobile Devices Out-of-Bounds Write

Exploited in the wild High 8.8 Published Updated

Remote attackers can execute arbitrary code via an out-of-bounds write in the image codec library on Samsung mobile devices.

Exploited in the wild
Since 10 Nov 2025
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-21042?

CVE-2025-21042 is a high-severity memory corruption vulnerability in Samsung Android, published on 12 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Out-of-bounds write in libimagecodec.quram.so prior to SMR Apr-2025 Release 1 allows remote attackers to execute arbitrary code.

Weakness: CWE-787

Which versions are affected by CVE-2025-21042?

It affects 1 product.

Products include Samsung Android.

How do I fix CVE-2025-21042?

No fix has been published for CVE-2025-21042 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 1 Dec 2025.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-21042 being exploited?

Yes. Attackers have exploited CVE-2025-21042 in the wild since at least 10 Nov 2025.

Public exploit code: 1 proofs of concept on GitHub.

All Samsung Android vulnerabilities

Sources

Also known as GHSA-jh44-w65q-8p7f.

Is CVE-2025-21042 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free