Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28B724854F9 for ; Thu, 24 Sep 2026 16:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265899; cv=none; b=dsBcowUgx5ZojhNpQa48WoXUnjskl55vI7ZqUI23vsmNOvXgtRxES18jXlxp9fXHsruG3T53pPmZEI2Zgs1kpqZM1Cd9kq6z+vNeBhtz3VouyOMvPDzDb7xd/5gToCzbae9dLXwD1JaUQNCt8LBTCjRxwoc3YqVWLQW9+pZuJD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265899; c=relaxed/simple; bh=26dxzIuY0VsTzRcO1AvF5UrHT3hT2/5rEScWIhpK/xg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cospg5gddpZCbvfRffabOGsbLJWnOm0nUiZ7B2ZllEClXHxEq1qCiqZIVAe5OdsX4/GtSconQ7DkT0L2W2L3Wf3fGE9e/FKDyDiROIK9AgsVItPTitz/IcXr/HMi0iSPj3i3PAWIY2tYtABSaUMb4fHOvtNSMTlmC2/tXB+f6Uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QUgrHlGj; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QUgrHlGj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C15BE1F000FF; Thu, 24 Sep 2026 16:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790265897; bh=Z2FTlMdSggbEjENao0SPOpRT+BcdoJabs7oNulCOKMA=; h=From:To:Cc:Subject:Date:Reply-To; b=QUgrHlGjNpgv6WB83rGIKPwMEE40VLAT07xlSD4Heo23r1VYTVnmIS3SV3nQSkB7B G+ESEuaokkUc8Cr4wDM2R0VHo7yYYmVkMW8ADyzART2uSoM4QAdpzFA2QlvlpxcHIX 31a0qrLFhnLH7deX3LWvvmXM2hs4vkVI3mmmmInY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93794: smb/client: flush dirty data before punching a hole Date: Thu, 24 Sep 2026 18:02:30 +0200 Message-ID: <2026092417-CVE-2026-93794-63c5@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2571; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uc0l79j4UbYJ26sI/dIoA69tA2g907VeN6jVh1irGKY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPTubv3a8eWEm0L5Mcop/RkBWfLCZu9EGqzXRK848Y Ch2dBbpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIks6WKYZ7xL87PguoibLyaI 7z27Y5ofS2juTIYF+5UbJk+Nej2hNT9L7EOLcE9ds3YAAA== 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: flush dirty data before punching a hole Punching a hole after a large buffered write may leave the range reported as data. Reproduce it with: xfs_io -f \ -c "pwrite -b 3m -S 0x61 0 3m" \ -c "fpunch 1m 1m" \ -c "seek -h 0" \ -c "seek -d 1m" \ /mnt/test/repro Punching 1 MiB at offset 1 MiB should produce: 0 1 MiB 2 MiB 3 MiB | DATA | HOLE | DATA | EOF Instead, the entire file is reported as data. SEEK_HOLE(0) returns EOF, and SEEK_DATA(1M) returns 1M. This happens because a dirty folio spanning the punched range can be written back after the punch and refill the hole. Fix this by flushing and waiting for dirty data in the punched range before invalidating the page cache and issuing FSCTL_SET_ZERO_DATA. The xfstests generic/539 pass against Samba/ksmbd with this change. The Linux kernel CVE team has assigned CVE-2026-93794 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 6c265aca08155e519a8f6f6071c59dff4f535f70 Fixed in 6.18.53 with commit 39562a56cdb515f6635c3e7bfe6629439b18a169 Fixed in 7.2 with commit d7d2adcd022baade5cab65ca492ce63421ce3a6e 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-93794 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/smb2ops.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/6c265aca08155e519a8f6f6071c59dff4f535f70 https://git.kernel.org/stable/c/39562a56cdb515f6635c3e7bfe6629439b18a169 https://git.kernel.org/stable/c/d7d2adcd022baade5cab65ca492ce63421ce3a6e