Medium severity5.5NVD Advisory· Published Jun 18, 2022· Updated Jun 17, 2026
CVE-2021-46822
CVE-2021-46822
Description
The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
8cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:*range: >1.5.3,<=2.0.90
- (no CPE)
- (no CPE)range: <=2.0.90
- osv-coords5 versionspkg:rpm/almalinux/libjpeg-turbopkg:rpm/almalinux/libjpeg-turbo-develpkg:rpm/almalinux/libjpeg-turbo-utilspkg:rpm/almalinux/turbojpegpkg:rpm/almalinux/turbojpeg-devel
< 2.0.90-6.el9_1+ 4 more
- (no CPE)range: < 2.0.90-6.el9_1
- (no CPE)range: < 2.0.90-6.el9_1
- (no CPE)range: < 2.0.90-6.el9_1
- (no CPE)range: < 2.0.90-6.el9_1
- (no CPE)range: < 2.0.90-6.el9_1
Patches
Vulnerability mechanics
References
2- github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2nvdPatchThird Party Advisory
- exchange.xforce.ibmcloud.com/vulnerabilities/221567nvdThird Party AdvisoryVDB Entry
News mentions
0No linked articles in our index yet.