Multiple integer overflows in the (1) jas_realloc function in base/jas_malloc.c and (2) mem_resize function in base/jas_stream.c in JasPer before 1.900.22 allow remote attackers to cause a denial of service via a crafted image, which triggers use after free vulnerabilities.
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 |
---|---|
http://www.openwall.com/lists/oss-security/2016/11/10/4 | third party advisory mailing list |
https://security.gentoo.org/glsa/201707-07 | vendor advisory |
http://www.securityfocus.com/bid/94224 | third party advisory vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=1393882 | third party advisory issue tracking |
https://access.redhat.com/errata/RHSA-2017:1208 | vendor advisory |
https://github.com/mdadams/jasper/commit/634ce8e8a5accc0fa05dd2c20d42b4749d4b2735 | patch vendor advisory issue tracking |
https://usn.ubuntu.com/3693-1/ | vendor advisory |
https://blogs.gentoo.org/ago/2016/11/07/jasper-use-after-free-in-jas_realloc-jas_malloc-c | third party advisory |