This issue was addressed through improved state management. This issue is fixed in iOS 17.3 and iPadOS 17.3. Locked Notes content may have been unexpectedly unlocked.
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor