libnsbmp: heap overflow (CVE-2015-7508) and out-of-bounds read (CVE-2015-7507)

Posted by Hans Jerry Illikainen on Dec 16

Overview
========

Libnsbmp[1] is a decoding library for BMP and ICO files. It is
primarily developed and used as part of the NetSurf project.

As of version 0.1.2, libnsbmp is vulnerable to a heap overflow
(CVE-2015-7508) and an out-of-bounds read (CVE-2015-7507).

CVE-2015-7508
=============

libnsbmp expects that the user-supplied `bmp_bitmap_cb_create’ callback
allocates enough memory to accommodate for `bmp->width * bmp->height *…

Leave a Reply