A security researcher discovered a vulnerability in iOS that allows a single line of code to brick an iPhone by exploiting a legacy public API called Darwin notifications. The vulnerability can be used to trigger a denial-of-service attack, causing the device to enter a 'Restore in Progress' mode and eventually requiring a device erase and restore from backup. The researcher reported the issue to Apple, which has since been addressed in iOS 18.3. The bug was found to be exploitable due to the lack of verification of the sender of Darwin notifications.