CoreGraphics in Apple iOS before 7.1.2 does not properly restrict allocation of stack memory for processing of XBM images, which allows remote attackers to execute arbitrary code or cause a denial of service (application crash) via crafted image data.
Apple Security Advisory 2014-06-30-3 - iOS 7.1.2 is now available and addresses application termination, code execution, bypass, and various other vulnerabilities.