Apple: iPhones, iPads, Macs might have security flaws making them vulnerable to hackers, offers patches