Newly revealed spyware can infiltrate iPhones, but the latest software patch from Apple stops it

Anyone using Apple Inc.’s iPhones and iPads should immediately update to the latest version of iOS 9 to ward off a security flaw that apparently can turn the device into a surveillance tool.

Apple updated its mobile operating system to version 9.3.5 after security researchers said they discovered previously unknown iOS bugs were being used to help foreign governments spy on their citizens. The software was able to get past Apple’s rule that only approved software may run on the device by exploiting iOS flaws to “jailbreak”...