The issue was addressed with improved memory handling. This issue is fixed in macOS Monterey 12.5, macOS Big Sur 11.6.8, Security Update 2022-005 Catalina, iOS 15.6 and iPadOS 15.6, tvOS 15.6, watchOS 8.7. An app with root privileges may be able to execute arbitrary code with kernel privileges.
https://support.apple.com/en-us/HT213346
https://support.apple.com/en-us/HT213345
https://support.apple.com/en-us/HT213344
https://support.apple.com/en-us/HT213343