A logic issue was addressed with improved checks. This issue is fixed in iOS 16.2 and iPadOS 16.2, iOS 15.7.2 and iPadOS 15.7.2, tvOS 16.2. An app may be able to execute arbitrary code with kernel privileges.
https://support.apple.com/en-us/HT213535
https://support.apple.com/en-us/HT213531
https://support.apple.com/en-us/HT213530
http://seclists.org/fulldisclosure/2022/Dec/26