Skip to main content
Vulnerability Database/CVE-2026-111144

CVE-2026-111144: libansilove NULL Pointer DOS Vulnerability

CVE-2026-111144 is a NULL pointer dereference flaw in libansilove versions 1.3.0 through 1.4.2 that causes application crashes through crafted XBIN files. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111144 Overview

CVE-2026-111144 is a NULL pointer dereference vulnerability [CWE-476] in libansilove versions 1.3.0 through 1.4.2. The flaw resides in the ansilove_xbin() loader, which processes XBIN image files. When an attacker crafts an XBIN file that sets the 512-character flag without the companion custom-font flag, the drawchar() function indexes a NULL high_font_data_xbin pointer. The resulting dereference terminates the process, producing a denial-of-service condition in any application linked against the vulnerable library.

Critical Impact

A crafted XBIN file can crash any application or service that parses untrusted ANSI/XBIN art through libansilove, disrupting document viewers, conversion pipelines, and web-based rendering tools.

Affected Products

  • libansilove 1.3.0
  • libansilove 1.4.x through 1.4.2
  • Applications and services that embed the vulnerable libansilove versions for XBIN rendering

Discovery Timeline

  • 2026-10-15 - CVE-2026-111144 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111144

Vulnerability Analysis

The vulnerability lives in the XBIN loader at src/loaders/xbin.c. XBIN headers include optional feature flags that advertise extended fonts (such as the 512-character flag) and signal whether the file carries custom embedded font data. The loader allocates high_font_data_xbin only when the custom-font flag is present. It does not verify that both flags are consistent with each other.

When the 512-character flag is set in isolation, ansilove_xbin() proceeds to render characters while high_font_data_xbin remains NULL. The drawchar() routine at src/drawchar.c then uses this pointer to look up glyph bitmap data. Dereferencing the NULL pointer raises SIGSEGV and terminates the host process. The attack vector is local and requires a user to open or process a malicious file, but any automated pipeline that invokes libansilove on untrusted input is also exposed.

Root Cause

The root cause is missing validation of mutually dependent header flags in the XBIN parser. The loader assumes that the 512-character flag will only appear alongside the custom-font flag, so it never checks whether high_font_data_xbin has been initialized before passing it to drawchar(). This matches the pattern described in CWE-476: NULL Pointer Dereference.

Attack Vector

Exploitation requires an attacker to supply a crafted XBIN file to a target that uses libansilove for rendering. User interaction is required: the victim must open the file or submit it to a service that invokes the vulnerable code path. There is no network component, no privilege requirement, and no memory corruption primitive. The impact is limited to availability, as the process crashes immediately when drawchar() performs the NULL dereference. See the VulnCheck Security Advisory and the HackMD Security Analysis for additional technical detail.

// No verified exploit code available.
// Refer to the HackMD analysis and VulnCheck advisory linked above
// for the XBIN header flag combination that triggers the crash.

Detection Methods for CVE-2026-111144

Indicators of Compromise

  • Repeated SIGSEGV or abnormal termination of processes that invoke ansilove_xbin() or wrap the libansilove library.
  • Core dumps whose faulting frame resolves to drawchar() in src/drawchar.c with a NULL high_font_data_xbin operand.
  • XBIN files whose headers set the 512-character flag without the corresponding custom-font flag.

Detection Strategies

  • Inventory binaries and packages that statically or dynamically link libansilove 1.3.0 through 1.4.2 and flag them for patching.
  • Add YARA or file-type rules in content-scanning pipelines that identify XBIN files with inconsistent font flag combinations before they reach the renderer.
  • Monitor application and container logs for crash loops in services that convert, preview, or thumbnail ANSI/XBIN art.

Monitoring Recommendations

  • Forward crash telemetry from Linux hosts (coredumpctl, systemd-coredump) and container runtimes into centralized logging for correlation.
  • Alert when the same user or upload workflow repeatedly produces segmentation faults in file-conversion services.
  • Track outbound submissions to shared libansilove-based web services for anomalous XBIN payloads originating from a single source.

How to Mitigate CVE-2026-111144

Immediate Actions Required

  • Upgrade libansilove to a fixed release once published by the maintainers and rebuild downstream consumers against the patched library.
  • Restrict acceptance of untrusted XBIN input in file-conversion, mail-scanning, and web-rendering pipelines until patches are deployed.
  • Run services that parse ANSI/XBIN art under process supervisors that automatically restart on crash to limit availability impact.

Patch Information

No fixed version is listed in the NVD entry at publication time. Monitor the libansilove GitHub repository and the VulnCheck Security Advisory for the official fix. The vulnerable code paths are documented in src/loaders/xbin.c and src/drawchar.c within the upstream repository.

Workarounds

  • Reject XBIN files whose header advertises the 512-character flag without the custom-font flag at the application layer before invoking libansilove.
  • Sandbox libansilove-based renderers using seccomp, Linux namespaces, or dedicated low-privilege service accounts to contain crashes.
  • Disable XBIN parsing in applications that only require ANSI or ASCII art rendering until a patched build is available.
bash
# Example: identify installed libansilove versions on Debian/Ubuntu hosts
dpkg -l | grep -i libansilove

# Example: locate processes with libansilove loaded in memory
for pid in $(pgrep -a .); do
  grep -l libansilove /proc/${pid}/maps 2>/dev/null
done

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.