CVE-2021-28831
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-28831 affects BusyBox through version 1.32.1, specifically in the decompressgunzip.c component. The vulnerability was discovered in March 2021 and involves mishandling of the error bit on the huftbuild result pointer when processing gzip data. This vulnerability affects various Linux distributions using BusyBox, including Debian, Fedora, Ubuntu, and Gentoo (NVD, Debian Security).

Technical details

The vulnerability exists in the decompressgunzip.c file where the code incorrectly handles the error bit on the huftbuild result pointer. When processing malformed gzip data, the huftbuild function sets an error bit on the result pointer, but if abortunzip is subsequently called, huft_free might encounter a segmentation fault or attempt to free an invalid pointer. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to a denial of service condition through either an invalid free operation or a segmentation fault when processing malformed gzip data. This could affect system stability and availability when processing compressed files (Gentoo Security).

Mitigation and workarounds

The vulnerability was fixed in the BusyBox codebase through a patch that properly handles the error bit in the huft_free function. The fix involves checking and clearing the error bit before attempting to free the linked list. Users are advised to upgrade to patched versions of BusyBox. Various distributions have released security updates: Debian 9 (1:1.22.0-19+deb9u2), Fedora (1.32.1-1), and Gentoo (>=1.32.1) (Busybox Commit, Debian LTS).

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-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 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