Last week, some iPhone users reported that Apple's iOS 17.5 update had introduced a bug that caused old photos that were deleted to reappear in the Photos app. Apple quickly released an iOS 17.5.1 update to fix the issue, but for many users, its explanation of "database corruption" in the release notes was all too brief, and did little to allay concerns about the privacy of their data.
Apple has now offered more details on the problem and what caused it. Speaking to 9to5Mac, Apple reportedly said the issue had nothing to do with iCloud Photos, and the company never had access to the deleted photos. Rather, a corrupted database entry on affected devices was the cause of deleted photos reappearing. In other words, the deleted images that were restored resided locally and never left those devices.
Apple said that in some rare cases iOS 17.5 had inadvertently restored files from the corrupted data and repopulated the Photos app with the deleted images. Apple claimed the issue affected a small number of users and a small number of photos.
To explain reports that some restored photos were very old, Apple said that in some cases the corrupted data may have been copied from one device to another when restoring a local backup, performing a device-to-device transfer, or restoring an iCloud device backup (i.e. not involving iCloud Photos).
One claim that was posted on Reddit, which has since been deleted, alleged that the user's photos reappeared on an iPad that had been erased and sold to a friend. Apple said that this could not have been the case if the user had wiped the device prior to sale using the Erase All Content and Settings option found in Settings ➝ General ➝ Transfer or Reset. Either the user had not performed this necessary step, or the claim was false.
Notably, Apple's iOS 17.5.1 update to rectify the issue does not remove any previously deleted photos that reappeared after updating to iOS 17.5. Affected users will therefore need to manually delete these images again, and they will be moved to the Recently Deleted album in the Photos app, where they will remain for 30 days. Recently deleted photos in this folder can also be immediately deleted by choosing Delete from All Devices.