Uninitialized read in exif_process_IFD_in_TIFF
An uninitialized read exists in the exif_process_IFD_in_TIFF function in PHP's EXIF extension, reproducible only on 32-bit builds. Uninitialized variables may leak data from memory.
- Triaged in 2 months
- Fixed in 19 months
- Paid in 19 months
- Disclosed after 19 months
This bug can be reproduced only in 32 bit PHP builds. This bug is present in exif_process_IFD_in_TIFF method of ext/exif/exif.c file.
Detailed description and steps to reproduce for this bug is present in bug report submitted to php.net. Bug Report : https://bugs.php.net/bug.php?id=77509 PHP version : 7.1.26 CVE-ID : 2019-9641
Impact
Uninitialized variables may leak data from memory.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a variable in the TIFF IFD parsing routine is used without being initialised on 32-bit builds.
Impact
Uninitialized variables may leak data from memory, though the text notes the bug can only be reproduced on 32-bit PHP builds.
What the attacker needed
32-bit PHP build
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A variable was used before being set, so it could contain leftover memory data, which may leak.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.