Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099401; b=uezYlxvcRFReFEMCcnRysc0LDNdaDZMl7PPjJOdDyO+w8mOzpBovHnjarFO076g8dE0O DSvsu1YPC43wD50Qmy9HRVdY7oy23FTbc0uUslcdLQKo+dU8CgeWRdnEluUxervTj5ERn bzW8RSlrSPJv23Vl5iCvWUkKTpgB8XRJl160+qesrZOhmD1Od/0Y/WhnPyyKMVPR83as3 xkF9HU3lC0W613Fte7ghYkQbgjLg9pCoRIew34M5SXjbPwUXUykTpHCe8cgpyGQjX1aKa PcDcxxjKHxlCCfAaA5vaJVmSJCUZrEfgvBK5IFCkj1RII1IGM0lRAIDIffbbxs+1WNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099401; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=mXvbU+cjjTEi6SVMIhKkSvxQF4QOk5KerSLhxHmg67M=; b=OJZIa1WBJlWwuvyEa0wVhhCvX3KubDydmBIe0PVHnwxFK9DM4+PZLBvPcV7ZbtZ8ECzw K0fPyNac37rjj1TEP7FTUARwmXfQfl/3wnv2J/HYxrfqaegfS5uQa0OlWud8ErCd/fBKp yBoihr+8s7jsdkbuJw7V/v6HjJZZr3Z99QjNrIHXZr0Lgs6hdIetjKyNuFDAO5XLPZz7Y TCVBtGm4pE5M3SzCwQZUFRt1IaZdWXZEqRvR1cpAv4q3+6F5R8SDTPOIL3qLwtbdhuaU3 Bpaj+iEQ0ti2pt3Zwl40V7Of/RNVBqaDqLNRsAIrBIcCAl60ph8hVgY8+j1LKj5O4Tw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=rS4J+VJh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8751B606A334 for ; Thu, 19 Nov 2026 14:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=rS4J+VJh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D98D1F000C4; Thu, 19 Nov 2026 14:43:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099401; bh=mXvbU+cjjTEi6SVMIhKkSvxQF4QOk5KerSLhxHmg67M=; h=From:To:Cc:Subject:Date:Reply-To; b=rS4J+VJhe2w/gx6JfZ6e55oRsyt5Xxtqp7hqNKrrUGsA/vwrfULsvC1S/L3sdk3Q6 pRTFZKIK0L6uwuWCxEDfAc0sIx1T0fhco5Mg/MRYuq0+ATd9zZf6VlV+eWMEDk8qpS zhVq8dpjEMECT7QFF6uVBQNmEhBdOG9ncqeMq420= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99373: NFS/localio: detect a short read or write before the iterator has moved Date: Thu, 19 Nov 2026 15:24:31 +0100 Message-ID: <2026111952-CVE-2026-99373-5a5d@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3233; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ny9P32nxO2EEQBX5XslaqkGeZHTMCF5cUIVS9decgAY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SqYbj8slHrK5rZv5fN5pXf2XObfOrHXe/2lpQv7r x4/+3FiRUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5EYLw4IdDIc+2Wbuf6hb 7Ku2irHmp8er5c4M85NFhKJ9l2YYtsquUJthPcFQWO9oPQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: NFS/localio: detect a short read or write before the iterator has moved nfs_local_call_read() and nfs_local_call_write() issue a misaligned DIO as up to three segments and must stop at the first short one, or the next segment lands at the wrong file offset. They test for that by comparing the bytes transferred against iov_iter_count() of the segment, read after read_iter() or write_iter() has advanced the iterator, when the count is the residual rather than the request: before the call: count == expected after the call: count == expected - status The test is therefore status < expected - status, and it fires only when less than half of the segment was transferred. A short I/O that covers between 50% and 99% of a segment slips through: the loop moves on with ki_pos advanced by the short amount, the next segment is issued at the wrong offset, and the header's byte count is over-reported to the caller. A write that slips through also never sets NFS_CONTEXT_WRITE_SYNC, which is what makes the writes that follow a short one synchronous. Take the segment's count before issuing it and compare against that. This is the same defect that commit 250ec14932d5 ("nfsd: fix partial-write detection in nfsd_direct_write") fixed in NFSD's version of this loop. The Linux kernel CVE team has assigned CVE-2026-99373 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit c817248fc831f5494d076421672b70a6ec1a92dc and fixed in 6.18.64 with commit 8be28bd11e098cd4f109edca1b883fe5704167ee Issue introduced in 6.18 with commit c817248fc831f5494d076421672b70a6ec1a92dc and fixed in 7.3.2 with commit ca85441a75b526228923e2959bd576403c4bba85 Issue introduced in 6.18 with commit c817248fc831f5494d076421672b70a6ec1a92dc and fixed in 7.4-rc1 with commit db3ca539c1142d2c5380c5dbd3154ab7bb1c7d77 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-99373 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/nfs/localio.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/8be28bd11e098cd4f109edca1b883fe5704167ee https://git.kernel.org/stable/c/ca85441a75b526228923e2959bd576403c4bba85 https://git.kernel.org/stable/c/db3ca539c1142d2c5380c5dbd3154ab7bb1c7d77