# CVE-2023-53804: nilfs2: fix use-after-free bug of nilfs\_root in nilfs\_evict\_inode()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-09T00:01:01.787Z
- **Modified:** 2026-08-05T09:16:07.269Z

## Who should check

- Anyone running Linux \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< f31e18131ee2ce80a4da5c808221d25b1ae9ad6d; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 2a782ea8ebd712a458466e3103e2881b4f886cb5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 6b4205ea97901f822004e6c8d59484ccfda03faa; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< b8427b8522d9ede53015ba45a9978ba68d1162f5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< acc2a40e428f12780004e1e9fce4722d88f909fd; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< fb8e8d58f116d069e5939e1f786ac84e7fa4533e; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e
- Anyone running Linux 2.6.37

## 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.

## Affected and fixed versions

- Linux: \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< f31e18131ee2ce80a4da5c808221d25b1ae9ad6d; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 2a782ea8ebd712a458466e3103e2881b4f886cb5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 6b4205ea97901f822004e6c8d59484ccfda03faa; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< b8427b8522d9ede53015ba45a9978ba68d1162f5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< acc2a40e428f12780004e1e9fce4722d88f909fd; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< fb8e8d58f116d069e5939e1f786ac84e7fa4533e; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e (cvelist)
- Linux: 2.6.37 (cvelist)

## Mitigation

- Upgrade Linux to 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53804. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53804.md
Affected: Linux >= e912a5b66837ee89fb025e67b5efeaa11930c2ce, < f31e18131ee2ce80a4da5c808221d25b1ae9ad6d; >= e912a5b66837ee89fb025e67b5efeaa11930c2ce, < 2a782ea8ebd712a458466e3103e2881b4f886cb5; >= e912a5b66837ee89fb025e67b5efeaa11930c2ce, < 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68; >= e912a5b66837ee89fb025e6…
Fixed in: Linux 2a782ea8ebd712a458466e3103e2881b4f886cb5, Linux 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68, Linux 6b4205ea97901f822004e6c8d59484ccfda03faa, Linux 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53804 being exploited?

There is no confirmed exploitation: CVE-2023-53804 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53804?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53804?

Linux \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< f31e18131ee2ce80a4da5c808221d25b1ae9ad6d; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 2a782ea8ebd712a458466e3103e2881b4f886cb5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 6b4205ea97901f822004e6c8d59484ccfda03faa; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< b8427b8522d9ede53015ba45a9978ba68d1162f5; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< acc2a40e428f12780004e1e9fce4722d88f909fd; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< fb8e8d58f116d069e5939e1f786ac84e7fa4533e; \>= e912a5b66837ee89fb025e67b5efeaa11930c2ce, \< 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e; Linux 2.6.37.

### Is there a fix for CVE-2023-53804?

Yes. Fixed in Linux 2a782ea8ebd712a458466e3103e2881b4f886cb5, Linux 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68, Linux 6b4205ea97901f822004e6c8d59484ccfda03faa, Linux 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e. Upgrade Linux to 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e or later.

### How do I check if I'm affected by CVE-2023-53804?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f31e18131ee2ce80a4da5c808221d25b1ae9ad6d>
- other: <https://git.kernel.org/stable/c/2a782ea8ebd712a458466e3103e2881b4f886cb5>
- other: <https://git.kernel.org/stable/c/116d53f09ff52e6f98e3fe1f85d8898d6ba26c68>
- other: <https://git.kernel.org/stable/c/6b4205ea97901f822004e6c8d59484ccfda03faa>
- other: <https://git.kernel.org/stable/c/b8427b8522d9ede53015ba45a9978ba68d1162f5>
- other: <https://git.kernel.org/stable/c/acc2a40e428f12780004e1e9fce4722d88f909fd>
- other: <https://git.kernel.org/stable/c/fb8e8d58f116d069e5939e1f786ac84e7fa4533e>
- other: <https://git.kernel.org/stable/c/9b5a04ac3ad9898c4745cba46ea26de74ba56a8e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53804>

HTML: <https://flawdb.com/CVE-2023-53804> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53804>
