Submit #758691: libvips 8.19.0(7fab325d2) NULL Pointer Dereference (CWE-476)info

Titlelibvips 8.19.0(7fab325d2) NULL Pointer Dereference (CWE-476)
DescriptionIn `libvips/foreign/matrixload.c`, function `vips_foreign_load_matrix_header()`, the return value of `vips_sbuf_get_line_copy()` is not checked for `NULL` before passing it to `parse_matrix_header()`. `parse_matrix_header()` then calls `strchr(line, ...)`, causing a NULL dereference on empty `.mat` input. The issue is reachable from `vips matrixload` and reproducible with ASAN as `SEGV` (denial of service).
Source⚠️ https://github.com/libvips/libvips/issues/4875
User
 Niebelungen (UID 95430)
Submission02/15/2026 10:48 (4 months ago)
Moderation02/24/2026 20:54 (9 days later)
StatusAccepted
VulDB entry347652 [libvips up to 8.18.0 matrixload.c vips_foreign_load_matrix_header null pointer dereference]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!