CVE-2022-28042 Use after free in n/a
A heap-based use-after-free in the stb_image library allows attackers to execute arbitrary code or cause denial of service via crafted JPEG images.
- 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
- Available
What is CVE-2022-28042?
CVE-2022-28042 is a high-severity use after free vulnerability in Debian Debian Linux, published on 15 Apr 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
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Weakness: CWE-416
Which versions are affected by CVE-2022-28042?
It affects 3 products.
Products include Debian Debian Linux, Fedoraproject Fedora, Nothings Stb Image.h.
How do I fix CVE-2022-28042?
Upgrade to a fixed version.
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-2022-28042 being exploited?
There is no known exploitation of CVE-2022-28042 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-28042, GHSA-mg9v-9rhj-95qm, UBUNTU-CVE-2022-28042.