A buffer overflow was addressed with improved bounds checking. This issue is fixed in iOS 14.7, macOS Big Sur 11.5, watchOS 7.6, tvOS 14.7, Security Update 2021-004 Catalina. Processing a maliciously crafted image may lead to arbitrary code execution.
https://www.zerodayinitiative.com/advisories/ZDI-22-353/
https://support.apple.com/en-us/HT212605
https://support.apple.com/en-us/HT212604
https://support.apple.com/en-us/HT212602