CVE-2023-53804
nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
- Published
- Updated
- Reserved
- Assigned by
- Linux
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
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.14% · top 97% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < f31e18131ee2ce80a4da5c808221d25b1ae9ad6d
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < 2a782ea8ebd712a458466e3103e2881b4f886cb5
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < 6b4205ea97901f822004e6c8d59484ccfda03faa
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < b8427b8522d9ede53015ba45a9978ba68d1162f5
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < acc2a40e428f12780004e1e9fce4722d88f909fd
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < fb8e8d58f116d069e5939e1f786ac84e7fa4533e
- affected e912a5b66837ee89fb025e67b5efeaa11930c2ce – < 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e
- affected 2.6.37
- unaffected < 2.6.37
- unaffected 4.14.316 – ≤ 4.14.*
- unaffected 4.19.284 – ≤ 4.19.*
- unaffected 5.4.244 – ≤ 5.4.*
- unaffected 5.10.181 – ≤ 5.10.*
- unaffected 5.15.113 – ≤ 5.15.*
- unaffected 6.1.30 – ≤ 6.1.*
- unaffected 6.3.4 – ≤ 6.3.*
- unaffected 6.4 – ≤ *
References (8)
- https://git.kernel.org/stable/c/f31e18131ee2ce80a4da5c808221d25b1ae9ad6d (opens in a new tab)
- https://git.kernel.org/stable/c/2a782ea8ebd712a458466e3103e2881b4f886cb5 (opens in a new tab)
- https://git.kernel.org/stable/c/116d53f09ff52e6f98e3fe1f85d8898d6ba26c68 (opens in a new tab)
- https://git.kernel.org/stable/c/6b4205ea97901f822004e6c8d59484ccfda03faa (opens in a new tab)
- https://git.kernel.org/stable/c/b8427b8522d9ede53015ba45a9978ba68d1162f5 (opens in a new tab)
- https://git.kernel.org/stable/c/acc2a40e428f12780004e1e9fce4722d88f909fd (opens in a new tab)
- https://git.kernel.org/stable/c/fb8e8d58f116d069e5939e1f786ac84e7fa4533e (opens in a new tab)
- https://git.kernel.org/stable/c/9b5a04ac3ad9898c4745cba46ea26de74ba56a8e (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-53804)Record last updated .