Apple released emergency security updates to fix two iOS zero-day vulnerabilities that were exploited in attacks on iPhones.