A type confusion issue was addressed with improved state handling. This issue is fixed in watchOS 8.7, tvOS 15.6, iOS 15.6 and iPadOS 15.6, macOS Monterey 12.5. An app may be able to execute arbitrary code with kernel privileges.
https://support.apple.com/kb/HT213344
https://support.apple.com/en-us/HT213346
https://support.apple.com/en-us/HT213345