{"id":"CVE-2023-53804","summary":"nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()\n\nDuring unmount process of nilfs2, nothing holds nilfs_root structure after\nnilfs2 detaches its writer in nilfs_detach_log_writer().  However, since\nnilfs_evict_inode() uses nilfs_root for some cleanup operations, it may\ncause use-after-free read if inodes are left in \"garbage_list\" and\nreleased by nilfs_dispose_list() at the end of nilfs_detach_log_writer().\n\nFix this issue by modifying nilfs_evict_inode() to only clear inode\nwithout additional metadata changes that use nilfs_root if the file system\nis degraded to read-only or the writer is detached.","modified":"2026-03-20T12:33:21.012259Z","published":"2025-12-09T00:01:01.787Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53804.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/116d53f09ff52e6f98e3fe1f85d8898d6ba26c68"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a782ea8ebd712a458466e3103e2881b4f886cb5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6b4205ea97901f822004e6c8d59484ccfda03faa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b5a04ac3ad9898c4745cba46ea26de74ba56a8e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/acc2a40e428f12780004e1e9fce4722d88f909fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b8427b8522d9ede53015ba45a9978ba68d1162f5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f31e18131ee2ce80a4da5c808221d25b1ae9ad6d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb8e8d58f116d069e5939e1f786ac84e7fa4533e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53804.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53804"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e912a5b66837ee89fb025e67b5efeaa11930c2ce"},{"fixed":"f31e18131ee2ce80a4da5c808221d25b1ae9ad6d"},{"fixed":"2a782ea8ebd712a458466e3103e2881b4f886cb5"},{"fixed":"116d53f09ff52e6f98e3fe1f85d8898d6ba26c68"},{"fixed":"6b4205ea97901f822004e6c8d59484ccfda03faa"},{"fixed":"b8427b8522d9ede53015ba45a9978ba68d1162f5"},{"fixed":"acc2a40e428f12780004e1e9fce4722d88f909fd"},{"fixed":"fb8e8d58f116d069e5939e1f786ac84e7fa4533e"},{"fixed":"9b5a04ac3ad9898c4745cba46ea26de74ba56a8e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53804.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.37"},{"fixed":"4.14.316"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.284"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.244"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.181"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.30"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53804.json"}}],"schema_version":"1.7.5"}