CVE-2026-53393: nfsd: reset write verifier on deferred writeback errors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfsd: reset write verifier on deferred writeback errors
nfsd_vfs_write() and nfsd_commit() both call filemap_check_wb_err() to detect deferred writeback errors, but neither rotates the server's write verifier (nn->writeverf) when this check fails. Every other durable-storage-failure path in these functions calls commit_reset_write_verifier() before returning an error.
The missing rotation means clients holding UNSTABLE write data under the current verifier will COMMIT, receive the unchanged verifier back, and conclude their data is durable — silently dropping data that failed writeback. This violates the UNSTABLE+COMMIT durability contract (RFC 1813 §3.3.7, RFC 8881 §18.32).
Add commit_reset_write_verifier() calls at both filemap_check_wb_err() error sites, matching the pattern used by adjacent error paths in the same functions. The helper already filters -EAGAIN and -ESTALE internally, so the calls are unconditionally safe.
The Linux kernel CVE team has assigned CVE-2026-53393 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.17 with commit 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb and fixed in 6.12.95 with commit 1dd664b39774a9c89b72de8e59bf9ef4b3aaff2e Issue introduced in 5.17 with commit 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb and fixed in 6.18.38 with commit 4367afc119c51e17a616f6908772b7e2c2c4013f Issue introduced in 5.17 with commit 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb and fixed in 7.1.3 with commit b027cca33c97354149fcc0ddeede4525c41093cd Issue introduced in 5.17 with commit 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb and fixed in 7.2-rc1 with commit 2090b05803faab8a9fa62fbff871007862cac1b7 Issue introduced in 5.10.124 with commit f14816f2f928c560d28ba344af689f56efcd6f55 Issue introduced in 5.15.49 with commit 3145fe0ebb16e1715ad541a301bc6675c8375fcd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53393
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/nfsd/vfs.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1dd664b39774a9c89b72de8e59bf9ef4b3aaff2e https://git.kernel.org/stable/c/4367afc119c51e17a616f6908772b7e2c2c4013f https://git.kernel.org/stable/c/b027cca33c97354149fcc0ddeede4525c41093cd https://git.kernel.org/stable/c/2090b05803faab8a9fa62fbff871007862cac1b7