There is a vulnerability in htmldoc 1.9.16. In image_load_jpeg function image.cxx when it calls malloc,'img->width' and 'img->height' they are large enough to cause an integer overflow. So, the malloc function may return a heap blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275 | third party advisory patch |
https://github.com/michaelrsweet/htmldoc/issues/471 | issue tracking exploit third party advisory |
https://lists.debian.org/debian-lts-announce/2022/05/msg00014.html | third party advisory mailing list |