Apple releases update to fix macOS security flaw