What’s Vulnerable › Vulnerabilities

CVE-2023-53055: fscrypt: destroy keyring after security_sb_delete()

Description

In the Linux kernel, the following vulnerability has been resolved: fscrypt: destroy keyring after security_sb_delete() fscrypt_destroy_keyring() must be called after all potentially-encrypted inodes were evicted; otherwise it cannot safely destroy the keyring. Since inodes that are in-use by the Landlock LSM don't get evicted until security_sb_delete(), this means that fscrypt_destroy_keyring() must be called *after* security_sb_delete(). This fixes a WARN_ON followed by a NULL dereference, only possible if Landlock was being used on encrypted files.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.11, 5.15.105, 6.1.22, 6.2.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-53055 or the next vulnerability affects your stack