# CVE-2021-46822

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-06-18 · Modified: 2024-08-04
- Aliases: MGASA-2022-0353, RHSA-2023:1068, UBUNTU-CVE-2021-46822, DEBIAN-CVE-2021-46822
- Record: https://cvemate.com/vulnerability/CVE-2021-46822 · JSON: https://cvemate.com/vulnerability/CVE-2021-46822/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.076%, percentile 66.114%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libjpeg-turbo (Debian): \< 1:2.1.1-1
- ubuntu libjpeg-turbo (Ubuntu): \< 2.0.3-0ubuntu1.20.04.3
- libjpeg-turbo libjpeg-turbo: \> 1.5.3, ≤ 2.0.90
- mageia libjpeg (Mageia): \< 2.0.8-1.mga8
- redhat libjpeg-turbo (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat libjpeg-turbo-debuginfo (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat libjpeg-turbo-debugsource (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat libjpeg-turbo-devel (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat libjpeg-turbo-utils (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat libjpeg-turbo-utils-debuginfo (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat turbojpeg (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat turbojpeg-debuginfo (Red Hat): \< 0:2.0.90-6.el9\_1
- redhat turbojpeg-devel (Red Hat): \< 0:2.0.90-6.el9\_1

## References

- <https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/221567>
- <https://advisories.mageia.org/MGASA-2022-0353.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30886>
- <https://ubuntu.com/security/notices/USN-5631-1>
- <https://github.com/libjpeg-turbo/libjpeg-turbo/blob/2.0.8-esr/ChangeLog.md>
- <https://access.redhat.com/errata/RHSA-2023:1068>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2100044>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1068.json>
- <https://access.redhat.com/security/cve/CVE-2021-46822>
- <https://www.cve.org/CVERecord?id=CVE-2021-46822>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46822>
- <https://ubuntu.com/security/CVE-2021-46822>
- <https://security-tracker.debian.org/tracker/CVE-2021-46822>

---

Data as of 2026-12-05T04:44:48.425Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
