Description
libansilove 1.3.0 through 1.4.2 contains a NULL pointer dereference vulnerability in ansilove_xbin() that allows attackers to crash applications by supplying a crafted XBIN file. Attackers can set the 512-character flag without the custom-font flag, causing drawchar() to index a NULL high_font_data_xbin pointer and terminate the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ansilove | libansilove | 1.3.0 – ≤ 1.4.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libansilove | No fix yet | — |
| Debian 13 | libansilove | No fix yet | — |
| Debian 12 | libansilove | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libansilove | No fix yet | — |
| Ubuntu 26.04 LTS | libansilove | No fix yet | — |
| Ubuntu 24.04 LTS | libansilove | No fix yet | — |
| Ubuntu 22.04 LTS | libansilove | No fix yet | — |
| Ubuntu 20.04 LTS | libansilove | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libansilove | 1.4.4-1.1 | openSUSE-SU-2026:12419-1 |
Advisories 1
- openSUSE-SU-2026:12419-1 libansilove-devel-1.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Nov 5, 2026
References
- https://hackmd.io/@haind-pwn/libansilove-xbin-rle-oob-read-and-null-font-deref technical-description exploit
- https://github.com/ansilove/libansilove/blob/f1b05447aa566aa4eef9b05ebf8c2aaf1e379cd3/src/loaders/xbin.c#L119-L166 technical-description
- https://github.com/ansilove/libansilove/blob/f1b05447aa566aa4eef9b05ebf8c2aaf1e379cd3/src/loaders/xbin.c#L224-L232 technical-description
- https://github.com/ansilove/libansilove/blob/f1b05447aa566aa4eef9b05ebf8c2aaf1e379cd3/src/drawchar.c#L28-L35 technical-description
- https://github.com/ansilove/libansilove product
- VulnCheck Advisory: libansilove 1.3.0 through 1.4.2 NULL Pointer Dereference via ansilove_xbin third-party-advisory