CVE-2022-24191
NixOS vulnerability analysis and mitigation

Overview

In HTMLDOC 1.9.14, a security vulnerability was identified involving an infinite loop in the gifreadlzw function that could lead to a pointer arbitrarily pointing to heap memory and resulting in a buffer overflow. The vulnerability was assigned CVE-2022-24191 and was discovered in January 2022 (MITRE CVE).

Technical details

The vulnerability occurs due to an infinite loop in the gifreadlzw function where the 'sp' variable, which belongs to heap memory, can be arbitrarily modified. The issue manifests in a loop where 'sp' is consistently incremented until it reaches out of heap memory bounds, causing a crash. The problematic code involves a while loop that continues as long as 'code >= clear_code', where *sp++ operations are performed without proper bounds checking (GitHub Issue).

Impact

The vulnerability could allow an attacker to cause a denial of service condition or potentially execute arbitrary code. When exploited, the buffer overflow condition could lead to system crashes or potential code execution in the context of the application (Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed in HTMLDOC version 1.9.15. Various Linux distributions have released security updates to address this issue, including Fedora 34 which updated to version 1.9.15-1.fc34 (Fedora Update), and Ubuntu which has released patches for multiple affected versions (Ubuntu Security).

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-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 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