CVE-2021-45385 Null dereference in n/a

Medium 6.5 Published Updated

A null pointer dereference in ffjpeg allows attackers to cause a denial of service via a crafted BMP image with out-of-range metadata.

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-2021-45385?

CVE-2021-45385 is a medium-severity vulnerability in n/a, published on 11 Feb 2022. 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

A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmp_load(). When the size information in metadata of the bmp is out of range, it returns without assign memory buffer to `pb->pdata` and did not exit the program. So the program crashes when it tries to access the pb->data, in jfif_encode() at jfif.c:763. This is due to the incomplete patch for CVE-2020-13438.

Weakness: CWE-476

Which versions are affected by CVE-2021-45385?

It affects 1 product.

Products include Rockcarry Ffjpeg.

How do I fix CVE-2021-45385?

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

Is CVE-2021-45385 being exploited?

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

Sources

Also known as GHSA-2php-7prq-766p.

Is CVE-2021-45385 in your software?

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

Check your SBOMs for free