An integer overflow vulnerability was found in tiftoimage function in openjpeg 2.1.2, resulting in heap buffer overflow.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
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/uclouvain/openjpeg/issues/871 | third party advisory exploit |
https://security.gentoo.org/glsa/201710-26 | third party advisory vendor advisory |
http://www.securityfocus.com/bid/94822 | vdb entry third party advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-9580 | issue tracking patch exploit third party advisory |
https://github.com/szukw000/openjpeg/commit/cadff5fb6e73398de26a92e96d3d7cac893af255 | third party advisory patch |