This issue was addressed with improved checks. This issue is fixed in iOS 15 and iPadOS 15. A local attacker may be able to cause unexpected application termination or arbitrary code execution.
https://www.zerodayinitiative.com/advisories/ZDI-22-354/