This issue was addressed with improved checks. This issue is fixed in iOS 15.1 and iPadOS 15.1, macOS Monterey 12.0.1, tvOS 15.1, watchOS 8.1, macOS Big Sur 11.6.1. A local attacker may be able to elevate their privileges.
https://support.apple.com/kb/HT212871
https://support.apple.com/en-us/HT212876
https://support.apple.com/en-us/HT212874
https://support.apple.com/en-us/HT212872