CVE-2026-33023
Beschrijving NL
libsixel is een SIXEL-encoder/decoder-implementatie afgeleid van de sixel van kmiya. In versies 1.8.7 en eerder, wanneer gebouwd met de optie --with-gdk-pixbuf2, bestaat er een use-after-free kwetsbaarheid in load_with_gdkpixbuf() in loader.c. Het opruimpad bevrijdt handmatig het sixel_frame_t-object en zijn interne buffers zonder de referentietelling te raadplegen, ook al is het object gemaakt via de refcounted constructor sixel_frame_new() en blootgesteld aan de openbare callback. Een callback die sixel_frame_ref(frame) aanroept om een logisch geldige referentie te behouden, houdt een bungelende aanwijzer vast nadat sixel_helper_load_image_file() is geretourneerd, en elke volgende toegang tot het frame of de velden ervan activeert een use-after-free bevestigd door AddressSanitizer. De hoofdoorzaak is een consistentiefout tussen twee opruimstrategieën in dezelfde codebase: sixel_frame_unref () wordt gebruikt in load_WITH_builtin() maar raw free() wordt gebruikt in load_WITH_gdkpixbuf(). Een aanvaller die een vervaardigd image levert aan een toepassing die is gebouwd tegen libsixel met ondersteuning voor gdk-pixbuf2, kan dit op betrouwbare wijze activeren, wat mogelijk kan leiden tot openbaarmaking van informatie, geheugenbeschadiging of uitvoering van code. Dit probleem is opgelost in versie 1.8.7-r1.
Origineel (Engels) tonen
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. In versions 1.8.7 and prior, when built with the --with-gdk-pixbuf2 option, a use-after-free vulnerability exists in load_with_gdkpixbuf() in loader.c. The cleanup path manually frees the sixel_frame_t object and its internal buffers without consulting the reference count, even though the object was created via the refcounted constructor sixel_frame_new() and exposed to the public callback. A callback that calls sixel_frame_ref(frame) to retain a logically valid reference will hold a dangling pointer after sixel_helper_load_image_file() returns, and any subsequent access to the frame or its fields triggers a use-after-free confirmed by AddressSanitizer. The root cause is a consistency failure between two cleanup strategies in the same codebase: sixel_frame_unref() is used in load_with_builtin() but raw free() is used in load_with_gdkpixbuf(). An attacker supplying a crafted image to any application built against libsixel with gdk-pixbuf2 support can trigger this reliably, potentially leading to information disclosure, memory corruption, or code execution. This issue has been fixed in version 1.8.7-r1.