CVE-2025-21051 Memory corruption in Samsung Mobile Devices

Medium 4.0 Published Updated

Local attackers can exploit an out-of-bounds write in JPEG decoding to achieve code execution or privilege escalation on Samsung mobile devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-21051?

CVE-2025-21051 is a medium-severity memory corruption vulnerability in Samsung Android, published on 10 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Out-of-bounds write in the pre-processing of JPEG decoding in libpadm.so prior to SMR Oct-2025 Release 1 allows local attackers to write out-of-bounds memory.

Weakness: CWE-787

Which versions are affected by CVE-2025-21051?

It affects 1 product.

Products include Samsung Android.

How do I fix CVE-2025-21051?

No fix has been published for CVE-2025-21051 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2025-21051 being exploited?

There is no known exploitation of CVE-2025-21051 in the wild and no public exploit code.

All Samsung Android vulnerabilities

Sources

Also known as GHSA-27v6-gp7m-8rxj.

Is CVE-2025-21051 in your software?

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

Check your SBOMs for free