This issue was addressed with improved checks. This issue is fixed in iOS 14.8.1 and iPadOS 14.8.1, iOS 15.1 and iPadOS 15.1, macOS Monterey 12.0.1. A local attacker may be able to cause unexpected application termination or arbitrary code execution.
https://support.apple.com/kb/HT212876
https://support.apple.com/kb/HT212874
https://support.apple.com/kb/HT212872
https://support.apple.com/kb/HT212871
https://support.apple.com/en-us/HT212869