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=1793187594; b=we1oa39fcR+GIX6bQ/Qd/6qkDCwIYB8xLC9gJ7uHGw3p/eiTZ/K5mbOEo6W4M9x2aUUh nK+WynMjpr+Qmo5BVkBfSH8m9tqCXC8REB8LJDB0p5i2V5LKdJLPfZnkl6tSrzdYEYroN plCiXTKVCFreNR/BIoIccLrrpILaz6P9ib9E++3YlRyTXnb9gfmL23gR2MmatAlssPXic tG6W0Dy3rgVM/A6YDvF5Dmf9R9otK/k8UyHhrcjDOu7hXFYnTCP1WGxuAdxA9s3UJ1rEO /pXX5KosFwvfisYZK4pZSyHF48dL1jaP3J3nH16VZZ1lNIJa7rybr0YnidiFrvRkcnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187594; 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=7Jv8vcBD8suvRvgZ3I/SzlZpifZcgRe9z5Y/W8B5UG0=; b=MrQ+qIEdYL9WVZ4K8rfsmSK8P6Xo4XZfQ3FjYYbXyTJ6B1faS9XpZU+J+1++MSD3dOIt uc0Fzz1Z3iYQ2tDLbkdTqi0AilaQveBZ7oWRjErZYGwXltEbjBBGZyvDzk+zD5+5DtjYJ Dal0GWD0ENqtccMPpP6QCGjw3n84ABqyiXPuEEupsicE4capt9TXZBI4LaUdTLbRR0bMk jiS6CDdtHe+mTFtlB5YRAYab9XjAOh/al7I2PNxaP8MPWJupu4MxIwOaZ9t+wuVrZCP6j I9i2gP975a+JL6XhODUB/n83OqEvC869yfXkwLNPXJtpHsTpFXYApZbkxS8cnFBlMhw== 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=p32P83IQ; 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 97238606A321 for ; Wed, 28 Oct 2026 11:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=p32P83IQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDD5B1F01829; Wed, 28 Oct 2026 11:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187594; bh=7Jv8vcBD8suvRvgZ3I/SzlZpifZcgRe9z5Y/W8B5UG0=; h=From:To:Cc:Subject:Date:Reply-To; b=p32P83IQVoMuuKAhMnwZaWFsAtW92r12HOswdoilzjk6g+djZ4zF1rFrfoss58b2n 8EFl3wChCdHNUUcbnHqVkVo8RItQykgKKxYCQH4jyOfY6iFL/g/+aqPr3PT9RF3Xrz cSIBfqfisc4KTM6YyLbbfoX3T1/pILHTWGI4RDHA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99137: cifs: don't update i_size in cifs_do_truncate without a cached handle Date: Wed, 28 Oct 2026 11:35:24 +0100 Message-ID: <2026102800-CVE-2026-99137-8fae@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=2592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K3rlDbITO7/TBka1BpaO8goM1WwgToth/Ik9BEgMIKw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1/5ZiAkMCXOqGxH/7X3fUbNC6u6fpRkz3urXrjQc Oe/L7eEOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZ0oYFlyWutJWbaWin3rp 63dLl/xOj4QL1QzzI7JPWygzV11oCP3A9mltOveaHT8OAgA= 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: cifs: don't update i_size in cifs_do_truncate without a cached handle If find_writable_file() returns null, cifs_file_flush will return 0 without issuing set_file_size, and the outer 'if (!rc)' block will set i_size to 0 before telling the server to truncate. If the cifs_open() then fails, the inode will have size 0, while the server file is unchanged. Move the netfs_resize_file() and cifs_setsize() into the 'if (cfile)', so they only run after a successful set_file_size. In the no-handle else branch, evict stale pages with truncate_inode_pages before the O_TRUNC open to dispose of old cache pages, and let the open response set the i_size. The Linux kernel CVE team has assigned CVE-2026-99137 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 6.18.59 with commit 04d020b3d0b58a1b7e116900e4095b96a7f4e11a Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 7.2.13 with commit 88a51743cd8094b76fd910f53f718747c7729cc8 Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 7.3 with commit fe39cd9d48f2346605f3746e0cc19e89d5f373eb 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-99137 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/smb/client/file.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/04d020b3d0b58a1b7e116900e4095b96a7f4e11a https://git.kernel.org/stable/c/88a51743cd8094b76fd910f53f718747c7729cc8 https://git.kernel.org/stable/c/fe39cd9d48f2346605f3746e0cc19e89d5f373eb