CVE-2021-46822
NixOS vulnerability analysis and mitigation

Overview

The PPM reader in libjpeg-turbo through version 2.0.90 contains a vulnerability related to the mishandling of tjLoadImage function when loading 16-bit binary PPM files into grayscale buffers and 16-bit binary PGM files into RGB buffers. This issue is specifically connected to a heap-based buffer overflow in the getwordrgb_row function in rdppm.c (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The issue specifically occurs in versions after 1.5.3 up to and including 2.0.90, affecting implementations that include the tjLoadImage function. The vulnerability is classified as CWE-787 (Out-of-bounds Write) (NVD, Ubuntu).

Impact

The vulnerability primarily affects system availability, with no direct impact on confidentiality or integrity. When exploited, it can lead to a heap-based buffer overflow condition, potentially causing application crashes or denial of service (NVD).

Mitigation and workarounds

The issue has been fixed in subsequent releases of libjpeg-turbo. A patch was implemented through commit f35fd27, which makes the PPM reader throw an error rather than segfaulting when attempting to load a 16-bit PPM file into a grayscale buffer. For affected systems, updating to the latest version of libjpeg-turbo is recommended (Github Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management