Apple has rolled out security fixes for vulnerabilities that may have already been used to target its customers.