CVE-2021-28277
NixOS vulnerability analysis and mitigation

Overview

A Heap-based Buffer Overflow vulnerability exists in jhead versions 3.04 and 3.05, specifically in the RemoveUnknownSections function within jpgfile.c. The vulnerability was discovered in early 2021 and affects the EXIF JPEG header manipulation tool (CVE Mitre, NVD).

Technical details

The vulnerability manifests as a heap-based buffer overflow read operation in the RemoveUnknownSections function of jpgfile.c. The issue was identified through testing with AddressSanitizer, which revealed a buffer overflow when reading 80 bytes beyond the allocated memory region. The vulnerability can be triggered when processing specially crafted JPEG files (GitHub Issue).

Impact

When exploited, this vulnerability could lead to a denial of service condition by causing the application to crash. The issue affects multiple Linux distributions including Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, and 20.04 LTS (Ubuntu Notice).

Mitigation and workarounds

The vulnerability has been fixed in jhead version 3.06.0.1. Users are advised to upgrade to this version or later. Various Linux distributions have released security updates to address this vulnerability. For instance, Ubuntu has released patches for affected versions, and Gentoo recommends upgrading to version 3.06.0.1 or later (Gentoo Advisory, Ubuntu Notice).

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