The update patches an issue that Apple said might lead to a “sophisticated attack.”