CVE-2026-53017
f2fs: fix data loss caused by incorrect use of nat_entry flag
Check your servers for CVE-2026-53017
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-2026-53017 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix data loss caused by incorrect use of nat_entry flag
Data loss can occur when fsync is performed on a newly created file (before any checkpoint has been written) concurrently with a checkpoint operation. The scenario is as follows:
create & write & fsync 'file A' write checkpoint - f2fs_do_sync_file // inline inode - f2fs_write_inode // inode folio is dirty - f2fs_write_checkpoint - f2fs_flush_merged_writes - f2fs_sync_node_pages - f2fs_flush_nat_entries - f2fs_fsync_node_pages // no dirty node - f2fs_need_inode_block_update // return false SPO and lost 'file A'
f2fs_flush_nat_entries() sets the IS_CHECKPOINTED and HAS_LAST_FSYNC flags for the nat_entry, but this does not mean that the checkpoint has actually completed successfully. However, f2fs_need_inode_block_update() checks these flags and incorrectly assumes that the checkpoint has finished.
The root cause is that the semantics of IS_CHECKPOINTED and HAS_LAST_FSYNC are only guaranteed after the checkpoint write fully completes.
This patch modifies f2fs_need_inode_block_update() to acquire the sbi->node_write lock before reading the nat_entry flags, ensuring that once IS_CHECKPOINTED and HAS_LAST_FSYNC are observed to be set, the checkpoint operation has already completed.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.98% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e05df3b115e7308afbca652769b54e4549fcc723, before eb65e8c7bd0a78a470cbdd3ff96232ba4a2ace89 affected from e05df3b115e7308afbca652769b54e4549fcc723, before 0645fa4d48e9b77d93f8b7a1c1fea58a97c2f8b0 affected from e05df3b115e7308afbca652769b54e4549fcc723, before 9fd3bcb54a6afea5fa8a828d010561143560b7c5 affected from e05df3b115e7308afbca652769b54e4549fcc723, before cb06a07d835ba1ea250785a796243bb483e65816 affected from e05df3b115e7308afbca652769b54e4549fcc723, before 20cedb4d9f6b230d0ee469690b8f868f06a07c29 affected from e05df3b115e7308afbca652769b54e4549fcc723, before 238e14eb7226f883b72caccd2d37bf5707df066b
Other versions: unaffected
|
| Linux |
affected 3.8 unaffected before 3.8 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.114 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.0.10 up to and including 7.0.* unaffected 7.1 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-2026-53017 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-53017
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-2026-53017
trivy image --scanners vuln IMAGE | grep CVE-2026-53017
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
- https://git.kernel.org/stable/c/eb65e8c7bd0a78a470cbdd3ff96232ba4a2ace89 git.kernel.org
- https://git.kernel.org/stable/c/0645fa4d48e9b77d93f8b7a1c1fea58a97c2f8b0 git.kernel.org
- https://git.kernel.org/stable/c/9fd3bcb54a6afea5fa8a828d010561143560b7c5 git.kernel.org
- https://git.kernel.org/stable/c/cb06a07d835ba1ea250785a796243bb483e65816 git.kernel.org
- https://git.kernel.org/stable/c/20cedb4d9f6b230d0ee469690b8f868f06a07c29 git.kernel.org
- https://git.kernel.org/stable/c/238e14eb7226f883b72caccd2d37bf5707df066b git.kernel.org
Source: the record CVE-2026-53017 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.
Vulnpocalypse