CVE-2023-53804

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

7.8 high EPSS 0.15%

Published 9 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-53804

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53804 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.31% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before f31e18131ee2ce80a4da5c808221d25b1ae9ad6d
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before 2a782ea8ebd712a458466e3103e2881b4f886cb5
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before 116d53f09ff52e6f98e3fe1f85d8898d6ba26c68
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before 6b4205ea97901f822004e6c8d59484ccfda03faa
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before b8427b8522d9ede53015ba45a9978ba68d1162f5
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before acc2a40e428f12780004e1e9fce4722d88f909fd
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before fb8e8d58f116d069e5939e1f786ac84e7fa4533e
affected from e912a5b66837ee89fb025e67b5efeaa11930c2ce, before 9b5a04ac3ad9898c4745cba46ea26de74ba56a8e
Other versions: unaffected
Linux
affected 2.6.37
unaffected before 2.6.37
unaffected from 4.14.316 up to and including 4.14.*
unaffected from 4.19.284 up to and including 4.19.*
unaffected from 5.4.244 up to and including 5.4.*
unaffected from 5.10.181 up to and including 5.10.*
unaffected from 5.15.113 up to and including 5.15.*
unaffected from 6.1.30 up to and including 6.1.*
unaffected from 6.3.4 up to and including 6.3.*
unaffected 6.4 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53804 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53804

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53804
trivy image --scanners vuln IMAGE | grep CVE-2023-53804

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53804 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.