CVE-2018-21040 Use after free in n/a

High 8.1 Published Updated

A race condition in the g2d driver causes a use-after-free, potentially allowing attackers to execute arbitrary code or escalate privileges on affected Samsung devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-21040?

CVE-2018-21040 is a high-severity use after free vulnerability in Google Android, published on 8 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered on Samsung mobile devices with O(8.x) and P(9.0) (Exynos 9810 chipsets) software. There is a race condition with a resultant use-after-free in the g2d driver. The Samsung ID is SVE-2018-12959 (December 2018).

Weakness: CWE-416, CWE-362

Which versions are affected by CVE-2018-21040?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2018-21040?

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

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-21040 being exploited?

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

All Google Android vulnerabilities

Sources

Also known as GHSA-rgv3-4hfm-m6vg.

Is CVE-2018-21040 in your software?

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

Check your SBOMs for free