Apple today released iOS 17.5.1 and iPadOS 17.5.1, minor updates to the iOS 17 and iPadOS 17 operating system updates that came out last September. The 17.5.1 updates come a week after the launch of iOS 17.5 and iPadOS 17.5.
iOS 17.5.1 and iPadOS 17.5.1 can be downloaded on eligible iPhones and iPads over-the-air by going to Settings > General > Software Update.
According to Apple's release notes, the updates include a fix for an issue that could cause images to reappear in the Photos library even after being deleted.
There have been several complaints from iPhone and iPad users who saw their old, deleted photos resurfacing after installing the iOS 17.5 update. Images deleted as far back as 2010 were surfacing again, leading to confusion and worry over what was going on. Apple's information today indicates that it was a database corruption issue, and iOS 17.5.1 should solve the problem.
Source: Macrumors