The hashes are hard coded into each iOS release which is the same for all iOS devices. The database is not vulnerable to server side changes.
Additionally, FWIW, they do not want to start analyzing entire iCloud photo libraries so this system only analyzes new uploads.
https://techcrunch.com/2021/08/10/interview-apples-head-of-p...
Do you have a source on that? Since it is illegal to share those hashes in any way or form. Even people working with photo forensic and big photo sharing sites cannot get access to them. I very much doubt Apple can incorporate them into the iOS release without breaking multiple laws. The hashes themselves can easily be reversed to (bad quality) pictures so having the hashes equals having child pornography.
Edit:
https://www.hackerfactor.com/blog/index.php?/archives/929-On...
Source? (The link you provide does not claim that, as far as I could see.)
> Reciprocally, the database of CSAM photos should not be made public or become known to the user. Apple has found a way to detect and report CSAM offenders while respecting these privacy constraints.
https://www.apple.com/child-safety/pdf/Alternative_Security_...
Where did you hear sharing hashes is illegal? How would anybody determine whether CASM at scale without those hashes?
Your hackerfactor source states, “In 2014 and 2015, NCMEC stated that they would give MD5 hashes of known CP to service providers for detecting known-bad files.”
Edit: i.e. OP isn't talking about MD5 hashes
This allows Apple to get to what is in their mind the best of both worlds: a truly private cloud for their valued users while not creating a safe haven for child abusers.
Apple's report count to the NCMEC is really low so it's probably true that they are not scanning on iCloud unless they receive a warrant.
Not that it matters when those Facebook sign ups are probably proxied with throwaway emails
The correction:
> This story originally said Apple screens photos when they are uploaded to iCloud, Apple’s cloud storage service. Ms Horvath and Apple’s disclaimer did not mention iCloud, and the company has not specified how it screens material, saying this information could help criminals.
And from the interview with TechCrunch:
> This is an area we’ve been looking at for some time, including current state of the art techniques which mostly involves scanning through entire contents of users’ libraries on cloud services that — as you point out — isn’t something that we’ve ever done; to look through users’ iCloud Photos.
[0] https://www.telegraph.co.uk/technology/2020/01/08/apple-scan...