Multiple out-of-bounds write issues were addressed with improved bounds checking. This issue is fixed in macOS Monterey 12.5, watchOS 8.7, tvOS 15.6, iOS 15.6 and iPadOS 15.6. An app may be able to disclose kernel memory.
https://support.apple.com/en-us/HT213345
https://support.apple.com/en-us/HT213342
https://support.apple.com/en-us/HT213340