Apple Inc. has issued a software patch to fix some security holes that independent security researchers recently discovered for the company’s vaunted iPhone.

The software update that Apple said it released late Tuesday addresses several bugs and security issues, but most notably a flaw that could have allowed hackers to take control of the multimedia cell phone to spread spam or steal data if its owner was to visit a doctored Web site or Internet Wi-Fi hotspot.