CVE-2019-6740 Memory corruption in Galaxy S9

Critical 9.6 Published Updated

Remote attackers can execute arbitrary code via a heap-based buffer overflow in the ASN.1 parser, requiring user interaction to visit a malicious page or file.

Exploited in the wild
Not known
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-2019-6740?

CVE-2019-6740 is a critical memory corruption vulnerability in Samsung Galaxy S9, published on 3 Jun 2019. 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

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Samsung Galaxy S9 prior to January 2019 Security Update (SMR-JAN-2019 - SVE-2018-13467). User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the ASN.1 parser. When parsing ASN.1 strings, the process does not properly validate the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-7472.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2019-6740?

It affects 1 product.

Products include Samsung Galaxy S9 Firmware.

How do I fix CVE-2019-6740?

No fix has been published for CVE-2019-6740 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-2019-6740 being exploited?

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

Sources

Also known as GHSA-pj75-2rhg-jmhv.

Is CVE-2019-6740 in your software?

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

Check your SBOMs for free