This issue was addressed with improved checks. This issue is fixed in tvOS 15.5, watchOS 8.6, iOS 15.5 and iPadOS 15.5, macOS Monterey 12.4, macOS Big Sur 11.6.6, Security Update 2022-004 Catalina. A remote user may be able to cause a denial-of-service.
https://support.apple.com/en-us/HT213256
https://support.apple.com/en-us/102770
https://support.apple.com/en-us/HT213258
https://support.apple.com/en-us/HT213257
https://support.apple.com/en-us/HT213255