forums.macrumors.com/threads/ios-17-5-bug-may-also-resurface-deleted-photos-on-wiped-sold-devices.2426698/
It’s clearly possible because it’s happening.
A comment on the internet doesn't prove anything.
Okay… multiple people commenting the same issue is a red flag. It’s clearly happening.
Most people report they get old pictures on their news devices with the same iCloud account. This one is different, it claims an used iPad with a new Apple ID gets the old owners pictures. That'd be quite a wild thing to happen.