Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
They did not say how they fixed this. Are they deleting corrupted files? Is there some kind of garbage collection periodically delete files with no reference? Will iCloud backups only copy files that are known to the file system?

How do we know this will not happen again? I agree with some posters there needs to be more information beyond what Apple said. Their whole cost proposition is that they are a security and privacy first company. This was a bad thing to happen and we need to know how Apple is fixing it and that we can trust them. If something like this happens again. People should be outraged this ever happened in the first place. What other dodgy code practices are being used? Will deleted iCloud messages appear some day? Deleted emails? Deleted app data?
Great comment their reply doesn't satisfy me either, its clear that anyone satisfied with this response has never looked at a line of code in their life, no one cares about why the photos returned or where they were stored.

WHY were they not deleted, files that are truly unallocated do not survive as long as apple and other reports have been saying these photos have remained for, are the same storage and deletion systems used by notes or keychain? From the company that has full length whitepapers for security on their site, this bug needs something around that caliber published.
 
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.
🤣 That's so typical of Apple. Whenever there's an issue, it always only affects a "small number of users."


Huh? What else do you want them to say?
Maybe gpat wanted an apology. Let me step in and help Apple out here 🤣

"We are aware that a small number of users are having issues with their third-generation butterfly keyboard iPhones and for that we are sorry. The vast majority of Mac notebook iPhone customers are having a positive experience with the new keyboard iOS 17.5 update."
 
Meanwhile have they implemented anything that now actually erases the ones and zeroes of photos after the 30-day grace or expedited user action? Highly unlikely. And if this is the case on device then it's likely also the case in iCloud. AKA someone else's computer. I agree it's not unreasonable to argue that delete has never meant erase in computer lexicon, but 'permanently delete' really shouldn't have any question marks hanging over it in a digital ecosystem that alleges to be the paragon of data security.
 
They did not say how they fixed this. Are they deleting corrupted files? Is there some kind of garbage collection periodically delete files with no reference? Will iCloud backups only copy files that are known to the file system?

How do we know this will not happen again? I agree with some posters there needs to be more information beyond what Apple said. Their whole cost proposition is that they are a security and privacy first company. This was a bad thing to happen and we need to know how Apple is fixing it and that we can trust them. If something like this happens again. People should be outraged this ever happened in the first place. What other dodgy code practices are being used? Will deleted iCloud messages appear some day? Deleted emails? Deleted app data?
Here’s what happened:

Security researchers at Synactiv also expanded on the issue by reverse-engineering the iOS 17.5.1 update used to fix it. You can find a detailed explanation in their full report here, but in short, iOS 17.5 added a migration routine responsible for scanning and re-importing photos from the filesystem. The routine was deleted by Apple’s recent update because it caused old files to be re-indexed on the local file system and pushed back into photo galleries.


OG analysis:

 
I have ZERO faith in their Cloud solutions. In Files, amongst my favourite folders on the left is a folder called “Giant Bomb” where I stored video files from said videogame website…nearly 10 years ago. I ceased using that website years ago, been trying to delete the folder for 7+ years, it goes then reappears randomly even now. Long since given up trying to remove it.

As for the latest issue, the prior update caused my Recently Deleted folder in Files to resurface a load of failed direct downloads of epub files I made about a year ago. They’re still there after the latest .1 update, greyed out, and unable to be deleted. Good work Apple, ha!
 
Huh? What else do you want them to say?

This is all there is to the story. I know because somebody on Twitter posted the actual code change made with the update fixing this bug.
Well not really.

What 17.5.1 fixed (at least according to reverse engineering) is just that those orphaned images are not getting re-imported into the Photos library anymore.

But the orphaned files are likely still there. There is no indication of any kind of clean up in the reverse engineered code. And it's also not clear why they did not get properly deleted in the first place.
 
Last edited:
I said at the time a single post from an alleged user on Reddit wasn’t enough to base a news article on yet alone for it to be even mentioned in a supposed news or rumor article. Oops…
 
  • Like
Reactions: G5isAlive
Sounds a lot like deleting files on a typical file system where only the pointer is removed (so you can't see it) but the actual file is still physically on the disk (until overwritten)

Sorry don't buy it. If the data is marked as deleted it can be overwritten and their claim that very old photos, some a few years from what I heard, are not over written over time doesn't sound plausible to me. I still think cloud services are involved but they'll never tell you if they were.

The mistake you’re both making here is not understanding that the files were never deleted. The photos disappeared from the Photos app database due to whatever “database corruption” happened that Apple described, but the files were never deleted from the file system. This is exactly how they were able to persist across devices via backups, as explained in the article. Everyone talking about deleted files and undeleting dormant data from storage is getting to a level that isn’t relevant to this issue.
 
Really not a satisfactory response from Apple's side. I guess we'll never know the whole truth.
We will if it ever gets to a lawsuit. This is basically the same response we had earlier with the only addition being the local backups causing issues.
 
  • Disagree
Reactions: G5isAlive
As an actual software engineer, I am satisfied with their response.

The orphaned images are referenced from both Files and Photos app apparently which is the problem. You can't rationally delete something from one without breaking the other and neither Files or Photos can command the deletion of either authoritatively so the file just stays there. The Photos app as part of the upgrade process will perform a recovery as it has its own state store (SQLite). So it pulled the images on disk back into the app. Managing state is very very complicated!

Notably some points:

Firstly, this update is a mitigation, NOT a solution. It just stops the file being read back into Photos app database and appearing. It does not delete the file. This is intentional and is just to stop the immediate issue from being impacting to users. The actual solution is probably a lot more complicated. Also...

Secondly, I suspect the solution requires a lot of rework. Both the files app and the photos app should have separate containers under the iOS model and it's a bit weird that they don't and it's probably some legacy crap. Adding that probably has a bunch of edge cases which might be difficult to resolve so they can't just rush in guns blazing and fix it completely.

Thirdly, this is nothing to do with iCloud or the cloud. It's all on-device state. All the whining about iCloud is just wrong.

Again, I'm satisfied with their response. Also if you think this is bad, you want to see what **** goes on in financial software that handles trillions of dollars of your money 🤣. Apple's quality and handling of stuff is 1000x better than what's passing your money around...
 
Will I experience the same if I upgrade from iOS 16.7 to iOS 17.5
You'll likely not experience it at all, as it's rare.

Sounds a lot like deleting files on a typical file system where only the pointer is removed (so you can't see it) but the actual file is still physically on the disk (until overwritten)
Sort of, but it's almost certainly not related directly to the file system.

If you think deleting a file means it's gone from your storage (on any kind of device) then yeah nothing will be satisfactory.
See above.

With Apple being Apple, it’s always “a small number of users”.
How do you know it isn't? Everyone who isn't affected won't write about it. Humans are pretty bad at statistics.

How do we know this will not happen again?
You don't. It's software.

Sorry don't buy it. If the data is marked as deleted it can be overwritten and their claim that very old photos, some a few years from what I heard, are not over written over time doesn't sound plausible to me. I still think cloud services are involved but they'll never tell you if they were.
Ok, so I guess stop buying and using their products. Nothing they could say would make you buy it.

its clear that anyone satisfied with this response has never looked at a line of code in their life
That's the most arrogant sentence I've read today (granted it's only 13:30). I'd say almost the opposite, although that would also be a bit arrogant. It makes perfect sense to me, and I've looked at code for tens of years.
 
Recently deleted photos in this folder can also be immediately deleted by choosing Delete from All Devices.

Wait, what do you mean delete from all devices? Is it called like that even if photos in icloud is off?

Did they turn on icloud photos again with this update? :)
 
  • Wow
Reactions: gusmula
🤣 That's so typical of Apple. Whenever there's an issue, it always only affects a "small number of users."
Did you have any of your older photos resurfaced? I don't think I did, and if the issue were more widespread, we probably would have seen more mention of it online.
 
  • Like
Reactions: G5isAlive
"... 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."

Can someone explain to me, in layman's terms, what a "database entry" is, and what "corrupted" refers to in this context.

And, more importantly, can a "corrupted database entry" really result in files failing to delete and "hiding" on the storage medium.

Does this also mean that these pseudo-deleted photos were taking up storage space, locally, on-device?

To be clear, I'm not saying I doubt Apple's explanation. I'm not an iOS dev.

But couldn't we confirm or deny these claims by going through database entries on any pre iOS 17.5 iPhones? Wouldn't this also reveal why the photos weren't deleted?
 
firstly, the comments in here, oof lmao…some people are never satisfied, good to see Apple properly explaining the issue here. sounds like that Reddit post was some clout bs.

regardless, it sucks still feeling like I gotta wait every time there’s an update to see if there’s some wild bug…as someone who keeps Apple doomsaying to a reasonable minimum, it’s easily the biggest sore spot for their ecosystem. come on WWDC ‘25! since I know yall are gonna spend 90 minutes saying “AI” as many time as possible at this year’s keynote—let’s get a focus next year on software stability!!! (please Tim lmfao I’m begging you)
 
Honestly I think the best way to understand this is in terms of the iTunes Library on the Mac (which this is conceptually most similar to).

Imagine you have an iTunes Library folder with some songs in it. The iTunes database file in the folder contains pointers to the raw song files. When you use iTunes, it reads the database and shows you songs based on what the database says.

Now let's say you were to delete a song. Normally, iTunes presents you with the option to keep the file on disk or move it to the Trash. You chose to move it to the Trash.

This is where the bug happened: Instead of being moved to the trash (and then being deleted permanently), the file stayed on disk. Now, the database entry for the song is gone -- so you can't see it -- but the file is still there, orphaned on the file system!

Let's also say that over years and years of iCloud backups and restores, the backup code simply copied the iTunes Library folder wholesale without checking the integrity of the database or whether there are any orphaned files.

Now Apple realizes that they are in a pickle: customer devices now have a bunch of orphaned files that have accumulated over the years, and they need to do something about it.

So what do they do? They rescan the folder and reindex any orphaned files in the database.

But uh oh, some of those files were supposed to be deleted! Now the U2 album has reappeared in people's libraries and they are MAD.

Hopefully that explains the issue a little more clearly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.