REDHAT-BUG-2392784
Write-What-Where in libtiff via TIFFReadRGBAImageOriented The vulnerability resides in the raster decoding logic of libtiff, specifically when processing paletted (indexed color) images with malformed metadata. The function TIFFReadRGBAImageOriented() computes a pointer offset into the raster buffer based on user-controlled image metadata: raster + (rheight - img.height) * rwidth If the attacker supplies a very large value for img.height (e.g., 0xFFFF) and a valid rheight (e.g., 256), this computation results in a large positive offset, causing the raster pointer (cp) passed into functions like put8bitcmaptile() or put1bitbwtile() to point beyond the bounds of the allocated buffer. Inside those functions, memory writes occur like this: *cp++ = PALmap[*pp][0]; • The write address (cp) is attacker-controlled via the offset calculation from img.height. • The value written (PALmap[*pp][0]) is also attacker-controlled: ◦ *pp is dereferenced from pixel data in the image file. ◦ PALmap is constructed from the image's color palette, which the attacker also controls. This constitutes a write-what-where vulnerability with a attacker control. Exploitation of a write-what-where primitive can lead to denial of service or code execution through supply of maliciously crafted files.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2392784?
The severity of REDHAT-BUG-2392784 is considered high due to its potential to allow arbitrary memory writes.
How do I fix REDHAT-BUG-2392784?
To fix REDHAT-BUG-2392784, update libtiff to the latest version that resolves the vulnerability.
What systems are affected by REDHAT-BUG-2392784?
REDHAT-BUG-2392784 affects systems using the LibTIFF library when processing malformed paletted images.
What type of vulnerability is REDHAT-BUG-2392784?
REDHAT-BUG-2392784 is categorized as a Write-What-Where vulnerability in the libtiff library.
What is the impact of exploiting REDHAT-BUG-2392784?
Exploiting REDHAT-BUG-2392784 can lead to arbitrary code execution or a system crash due to memory corruption.