A use after free issue was addressed with improved memory management. This issue is fixed in watchOS 8.6, tvOS 15.5, iOS 15.5 and iPadOS 15.5. An application may be able to execute arbitrary code with kernel privileges.
https://support.apple.com/kb/HT213675
https://support.apple.com/en-us/HT213258
https://support.apple.com/en-us/HT213254