ImageIO: Processing a maliciously crafted file may lead to unexpected app termination (CVE-2024-40784)
An integer overflow in ImageIO when processing a maliciously crafted file could cause an app to terminate unexpectedly. The issue was addressed with improved input validation.
Junsung Lee Follow with Gandalf4a
Originally disclosed on Apple
Impact: Processing a maliciously crafted file may lead to unexpected app termination
Description: An integer overflow was addressed with improved input validation.
Available for: iPhone XS and later, iPad Pro 13-inch, iPad Pro 12.9-inch 2nd generation and later, iPad Pro 10.5-inch, iPad Pro 11-inch 1st generation and later, iPad Air 3rd generation and later, iPad 6th generation and later, and iPad mini 5th generation and later
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 an integer overflow in ImageIO's file parsing logic that was not properly validated before use.
What the attacker needed
Victim opens a malicious file
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.
ImageIO is a system component that handles image files. An integer overflow is a maths error where a number becomes too large for its storage, which can crash the app. A malicious file could trigger this crash, but the text does not say it allows code execution.
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.