The TIFFSetProfiles function in coders/tiff.c in ImageMagick 7.0.6 has incorrect expectations about whether LibTIFF TIFFGetField return values imply that data validation has occurred, which allows remote attackers to cause a denial of service (use-after-free after an invalid call to TIFFSetField, and application crash) via a crafted file.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
http://bugzilla.maptools.org/show_bug.cgi?id=2730 | issue tracking exploit third party advisory |
http://www.securityfocus.com/bid/100875 | vdb entry third party advisory |
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32560 | issue tracking vendor advisory |
https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html | third party advisory mailing list |