CVE-2020-35538
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-35538 is a vulnerability discovered in libjpeg-turbo, where a crafted input file could cause a null pointer dereference in the jcopy_sample_rows() function when processed by the library (NVD, Ubuntu).

Technical details

The vulnerability occurs specifically in the jcopy_sample_rows() function when processing certain crafted input files. The issue manifests as a null pointer dereference, which can lead to a program crash. The vulnerability was particularly problematic when using the merged (non-fancy) upsampling algorithms for processing 4:2:2 or 4:2:0 JPEG images, especially when setting cinfo.do_fancy_upsampling to FALSE (Debian).

Impact

When exploited, this vulnerability can cause the application processing JPEG images with libjpeg-turbo to crash due to the null pointer dereference, potentially leading to a denial of service condition (Rapid7).

Exploitability

The vulnerability can be triggered by processing specially crafted JPEG files, particularly when using specific image processing operations like jpeg_skip_scanlines(). The issue manifests when NULL is passed as the output array address in jcopy_sample_rows() (Github Issue).

Mitigation and workarounds

The vulnerability has been fixed in multiple versions across different distributions. Debian has fixed the issue in versions 1:2.0.6-4 for bullseye, 1:2.1.5-2 for bookworm, and 1:2.1.5-3.1 for sid and trixie (Debian).

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-2026-85706CRITICAL10
  • GitLab logoGitLab
  • gitlab
YesYesSep 12, 2026
CVE-2026-88009HIGH8.8
  • NixOS logoNixOS
  • github.com/traefik/traefik/v2
NoYesSep 10, 2026
CVE-2026-88008HIGH7
  • NixOS logoNixOS
  • github.com/traefik/traefik/v2
NoYesSep 10, 2026
CVE-2026-88012MEDIUM5.3
  • NixOS logoNixOS
  • traefik-fips-3
NoYesSep 10, 2026
CVE-2026-88011MEDIUM5.3
  • NixOS logoNixOS
  • github.com/traefik/traefik/v2
NoYesSep 10, 2026

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