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=1793187398; b=cbnGMHglsxZzzMvvn/ggK7/ug6mKBsBoV0iGF58k05ZWsrUgSeMn2qo434hijcpONMTR f84w31UPsALpUl4R5d+N0rmkwVVVlIqkk16mnIRvtNELxPBMLyQjGJi84HplRA5FcRicg +zKRYemIEfpk3354Sf89WdofdA6oveefAuF96Gmx2hZ/pbQvMHMxrx9c98GNSpPWtlPbU wA2dTriB8QV9/qsA0WKrKpEuVJxmIG04Pz+OoD8Xi+1rSFYpfN7jkgy43F0cjOaBZ/1su Rc6Hi0lYhOPnyFiNJP5rnrhTvggDkHx+4Cek+xAh+LJr3qRFnlM0FHGmaKFgDAkHs0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187398; 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=0cyOQ1a7lddTWucuxw3HwLVvg8RERtNsETMysiHqUCM=; b=bA/b0m6Inyak+AzfdkJBky4/zDH+1Nj5Ak5Mx3yIjCs9n0bLXZjXxicMvyf6kcQTE5pL Y6GoMvQLtTUifToGeofps8mrf1b7mKqI+beEphJHRwKLQ9NTVy1PkgN/S/IbRCcCiZHK+ wKK6tQJ8Dd0RtaxNtJvAZzv224VvraPb69rSVqNwo8F7mQnZ47QKFTnE7u6rWnkCJdSoN w38y8mFnAH0b6iWcF4wABWN6/67QGV2D9b4aQfxJYgKN9r/klwoCnhI4+XtHSlGxLZzpl Hp62EYDXikT529djV6xG60t/EN/lm2aOMfM1NU0V/vxHrYnGmVkeljhvUt+wAjz25ZQ== 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=NucbdwZC; 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 BD556606A31C for ; Wed, 28 Oct 2026 11:36:37 +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=NucbdwZC Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0DAE1F01825; Wed, 28 Oct 2026 11:36:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187397; bh=0cyOQ1a7lddTWucuxw3HwLVvg8RERtNsETMysiHqUCM=; h=From:To:Cc:Subject:Date:Reply-To; b=NucbdwZCrQnz/r38mfzCbMy6Pl3TW50sHvLQ46l34Fdru2D6uuuiwe9O/rR/po+mE Fds5PWzKwTYwoPBxP3ppO2egG9m5Xdyrio1G4AXv4CUCVitvwcUzcjpapa+BhfYX+w cSXXVlzYTsfYW0sX7cmIouihl/P5cSN2pIexWoos= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99111: smb: client: fix data corruption with concurrent writes and O_TRUNC Date: Wed, 28 Oct 2026 11:34:58 +0100 Message-ID: <2026102854-CVE-2026-99111-9e37@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=3018; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=siBoHE+8raRSgt01OWGMzRYZ+YiUcfUn2s7MHO7AO/s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz59bt/3y+f8KhktfGZ45Xr/5s0vGDNP/WtUaWnf/6 TX4vE2x6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJCLsyLDjb+uxlcorn4rOh mV1n3EotdVUXJzPMT1FxsF15Se/A7IUT1jq9bru7dkrnHAA= 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: smb: client: fix data corruption with concurrent writes and O_TRUNC cifs_do_truncate() flushes dirty pages with filemap_write_and_wait() and truncates the file on the server, but in the old code both operations ran without holding i_rwsem or invalidate_lock. A concurrent buffered write via netfs_perform_write() -- which only needs i_rwsem shared -- could dirty new pages after the flush but before the local truncation, and those pages would be silently discarded by cifs_setsize() -> truncate_pagecache(). Fix by acquiring inode_lock (exclusive i_rwsem) and filemap_invalidate_lock at the top of cifs_do_truncate(), so the entire flush-truncate-resize sequence is atomic with respect to: - buffered writes (blocked by exclusive i_rwsem, since netfs_start_io_write takes i_rwsem shared), - read page faults (blocked by exclusive invalidate_lock, since filemap_fault takes it shared), - writeback collection (blocked by netfs_wb_begin/netfs_wb_end around the server truncate and local resize, since netfs_writepages also acquires the wb lock). The Linux kernel CVE team has assigned CVE-2026-99111 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 6.18.59 with commit 4d143608a0445443a85c9b29f4c9f8e63d5dbfc9 Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 7.2.13 with commit ffa66fdc7d35b890606767c4d2c7ac26b4d90a99 Issue introduced in 6.18 with commit 110fee6b9bb58a5c50047fc2594d415f741b591e and fixed in 7.3 with commit a8603b52b39f520ea8a34def74c23fba87396d3e 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-99111 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/4d143608a0445443a85c9b29f4c9f8e63d5dbfc9 https://git.kernel.org/stable/c/ffa66fdc7d35b890606767c4d2c7ac26b4d90a99 https://git.kernel.org/stable/c/a8603b52b39f520ea8a34def74c23fba87396d3e