CVE-2023-53055
JSON

5.5medium

fscrypt: destroy keyring after security_sb_delete()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom e6f4fd85ef1ee6ab356bfbd64df28c1cb73aee7e before 992a3f3e8a0c92151dfdf65fc85567c865fd558a, from d7e7b9af104c7b389a0c21eb26532511bce4b510 before d77531fac6a1fd9f1db0195438ba5419d72b96c4, from d7e7b9af104c7b389a0c21eb26532511bce4b510 before 497ab5d9c7852dfedab2c9de75e41b60e54b7c5d, from d7e7b9af104c7b389a0c21eb26532511bce4b510 before ccb820dc7d2236b1af0d54ae038a27b5b6d5ae5a, 391cceee6d435e616f68631e68f5b32d480b1e67, 68d15d6558a386f46d815a6ac39edecad713a1bf, from 5.15.78 before 5.15.105, from 5.10.154 before 5.11 and 2 more
Not affected: before 6.1, from 5.15.105 up to 5.15.*, from 6.1.22 up to 6.1.*, from 6.2.9 up to 6.2.*, from 6.3 up to *
CVE List
linux linux_kernelfrom 5.10.154 before 5.11, from 5.15.78 before 5.15.105, from 6.0.8 before 6.1.22, from 6.2 before 6.2.9, 6.3NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fscrypt: destruir el anillo de claves después de security_sb_delete(). fscrypt_destroy_keyring() debe llamarse después de expulsar todos los inodos potencialmente cifrados; de lo contrario, no puede destruir el anillo de claves de forma segura. Dado que los inodos en uso por el LSM de Landlock no se expulsan hasta security_sb_delete(), esto significa que fscrypt_destroy_keyring() debe llamarse *después* de security_sb_delete(). Esto corrige un WARN_ON seguido de una desreferencia a NULL, solo posible si Landlock se utilizaba en archivos cifrados.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53055 changed 2026-11-05CVE Terms of Use
NVDCVE-2023-53055 changed 2026-11-05Public domain