2.5low
libsixel: NULL pointer dereference
- Severity
- 2.5low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.13% (higher than 1% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, a wrong NULL check after an allocation call in sixel_decode_raw and sixel_decode causes a NULL pointer dereference whenever the allocation fails. The check tests the address of the output parameter (always non-NULL) instead of the value the malloc returned. On allocation failure, the function continues and writes through a NULL pointer, crashing the process. This is a denial of service against any caller of these public APIs that hits a low-memory condition. This vulnerability is fixed in 1.8.7-r2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| saitoha libsixel | >= 1.0.0, < 1.8.7-r2, from 1.0.0 before 1.8.7-r2 | CVE List, NVD |
All scores
| GitHub_M | 2.5low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVD | 2.5low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, a wrong NULL check after an allocation call in sixel_decode_raw and sixel_decode causes a NULL pointer dereference whenever the allocation fails. The check tests the address of the output parameter (always non-NULL) instead of the value the malloc returned. On allocation failure, the function continues and writes through a NULL pointer, crashing the process. This is a denial of service against any caller of these public APIs that hits a low-memory condition. This vulnerability is fixed in 1.8.7-r2.
NVD (es)
libsixel es una implementación de codificador/decodificador SIXEL derivada de sixel de kmiya. Desde hasta 1.8.7-r1, una comprobación de NULL incorrecta después de una llamada de asignación en sixel_decode_raw y sixel_decode causa una desreferencia de puntero NULL siempre que la asignación falla. La comprobación prueba la dirección del parámetro de salida (siempre no-NULL) en lugar del valor que malloc devolvió. En caso de fallo de asignación, la función continúa y escribe a través de un puntero NULL, colapsando el proceso. Esto es una denegación de servicio contra cualquier llamador de estas API públicas que alcanza una condición de poca memoria. Esta vulnerabilidad está corregida en 1.8.7-r2.
References
| https://github.com/saitoha/libsixel/security/advisories/GHSA-wpx3-h5g8-qr3w | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44638 changed 2026-05-15 | CVE Terms of Use |
| NVD | CVE-2026-44638 changed 2026-10-26 | Public domain |