CVE-2026-100046: virtiofs: validate fixed-output response length
In the Linux kernel, the following vulnerability has been resolved:
virtiofs: validate fixed-output response length
A short successful virtiofs response can leave the fixed-output portion of the request argument buffer unwritten. The completion path nevertheless copies the full declared output to the request destination, allowing stale allocator contents to reach callers such as fusestatfs().
Require successful fixed-output responses to contain their complete declared output. Continue to permit a shorter final argument only for outargvar requests. Reject positive and internal restart error values and require valid error replies to be header-only. The error already stored in the FUSE output header is returned by fuserequestend(), so do not copy output arguments from an error reply.
This was found by source review with AI assistance. A header-only successful FUSESTATFS reply returned stale fields in nine of nine calls across three boots. The fixed kernel rejected the short response and preserved complete replies, valid negative-error replies, and variable-output replies.