Source: https://www.engadget.com/ios-1751-fixes-reappearing-photo-bug-204830179.html

Apple just released an update for iOS (and iPadOS) to tackle a strange bug that cropped up in the past week. When iOS 17.5 came out, some users noticed that photos they deleted were reappearing in their Photos library — now, iOS 17.5.1 promises to fix that. As Apple puts its, the update “addresses a rare issue where photos that experienced database corruption could reappear in the Photos library even if they were deleted.”