This issue was addressed with improved checks. This issue is fixed in tvOS 15, watchOS 8, iOS 15 and iPadOS 15. A malicious application may be able to modify protected parts of the file system.
https://support.apple.com/kb/HT212869
https://support.apple.com/en-us/HT212819