CVE-2026-143133: netfs: preserve prepare_write errno on reissue
In the Linux kernel, the following vulnerability has been resolved:
netfs: preserve preparewrite errno on reissue
preparewrite() may call netfspreparewritefailed() (FAILED + errno) before writeretry calls netfsreissuewrite(). Clearing subreq->error to 0 for a clean I/O reissue (82e8885bd763) then makes netfsdoissuewrite() terminate with 0. The collector copies front->error into stream->error and mappingseterror(), which ignores 0, so writeback failure is silent.
Skip clearing error when NETFSSREQFAILED is already set; doissuewrite() already terminates FAILED subrequests.
Affected Software
Event History
Frequently Asked Questions
What is the practical impact of this issue?
A writeback failure can be silently lost when a failed netfs write subrequest is reissued. The error may not be recorded in the mapping error state, causing the write operation to appear successful despite the failure.
What condition triggers the silent failure behavior?
The issue occurs when prepare_write() has already marked a subrequest as failed and set an errno, then write retry logic reissues the write and clears subreq->error to zero. The later write-issue path terminates the already failed subrequest with zero, preventing the original error from being propagated.
How is the issue addressed?
The fix avoids clearing the subrequest error when NETFS_SREQ_FAILED is already set. This preserves the original errno so the failed write is correctly reported through the collector and mapping error handling.