CVE-2023-53804

nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()

State
Published
Severity
7.8 High
Published
Dec 9, 2025
Updated
Aug 5, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()

During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may cause use-after-free read if inodes are left in "garbage_list" and released by nilfs_dispose_list() at the end of nilfs_detach_log_writer().

Fix this issue by modifying nilfs_evict_inode() to only clear inode without additional metadata changes that use nilfs_root if the file system is degraded to read-only or the writer is detached.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before f31e18131ee2ce80a4da5c808221d25b1ae9ad6dAffected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before 2a782ea8ebd712a458466e3103e2881b4f886cb5Affected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68Affected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before 6b4205ea97901f822004e6c8d59484ccfda03faaAffected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before b8427b8522d9ede53015ba45a9978ba68d1162f5Affected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before acc2a40e428f12780004e1e9fce4722d88f909fdAffected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before fb8e8d58f116d069e5939e1f786ac84e7fa4533eAffected
  • e912a5b66837ee89fb025e67b5efeaa11930c2ce to before 9b5a04ac3ad9898c4745cba46ea26de74ba56a8eAffected
LinuxLinux
  • 2.6.37Affected
  • before 2.6.37Not affected
  • 4.14.316 through 4.14.*Not affected
  • 4.19.284 through 4.19.*Not affected
  • 5.4.244 through 5.4.*Not affected
  • 5.10.181 through 5.10.*Not affected
  • 5.15.113 through 5.15.*Not affected
  • 6.1.30 through 6.1.*Not affected
  • 6.3.4 through 6.3.*Not affected
  • 6.4 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.