CVE-2021-29390 Memory corruption in n/a
A heap-based buffer over-read in libjpeg-turbo allows attackers to cause denial of service or disclose sensitive memory contents via crafted 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-2021-29390?
CVE-2021-29390 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 22 Aug 2023. 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
libjpeg-turbo version 2.0.90 has a heap-based buffer over-read (2 bytes) in decompress_smooth_data in jdcoefct.c.
Weakness: CWE-787
Which versions are affected by CVE-2021-29390?
It affects 2 products.
Linux distribution packages (19)
libjpeg-turbo AlmaLinux:9 | All versions | 2.0.90-7.el9 |
libjpeg-turbo-devel AlmaLinux:9 | All versions | 2.0.90-7.el9 |
libjpeg-turbo-utils AlmaLinux:9 | All versions | 2.0.90-7.el9 |
turbojpeg AlmaLinux:9 | All versions | 2.0.90-7.el9 |
turbojpeg-devel AlmaLinux:9 | All versions | 2.0.90-7.el9 |
libjpeg-turbo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-utils Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-utils-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
turbojpeg-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo-utils-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
turbojpeg Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
turbojpeg-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
turbojpeg-devel Red Hat:enterprise_linux:9::crb | All versions | 0:2.0.90-7.el9 |
libjpeg-turbo Rocky Linux:9 | All versions | 0:2.0.90-7.el9 |
Products include Fedoraproject Fedora, Libjpeg-Turbo Libjpeg-Turbo.
How do I fix CVE-2021-29390?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-29390 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29390 exists.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALSA-2024:2295, CLSA-2025-1744631931, GHSA-3f9q-r2pw-87vm, RHSA-2024:2295, RLSA-2024:2295.