A newly discovered security flaw is affecting Apple's iPhone and Mac computers.