A null pointer dereference vulnerability exists in libheif versions 1.20.0 up to but not including 1.23.6. The flaw occurs in the Track_Visual::decode_next_image_sample() function when processing crafted HEIF image sequences, potentially causing the application to crash. This is due to a null decoder pointer being dereferenced when a later chunk in the 'stsc' box maps to a non-visual 'stsd' sample entry such as 'mp4a'.