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 4428649A3D4 for ; Fri, 25 Sep 2026 10:42:30 +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=1790332951; cv=none; b=IPHRM7tl1ujpokTyRsL1WnDOC9A90haHita8RYOznmiOk/liv93g0pw4+/qqHGdNgYzXL9bEWDrq7nYHu2CucLP2vuK46qf7L/K4SvH4i0THoksft2afmi6zrVSihWMOF3IgRUzBKNtxil+3aI/TEWqNRYiyiH0Lay6aiylLdI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332951; c=relaxed/simple; bh=qfSBxESY001jgycq7G5/mWTXudcpopEZEXyH089KmBs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dlejZiZL4rxvWzoE7nYg94HD/Qygbm301DAOVRX3vpJmhdHfMeBo4EKPV3f39KmQU2pEC/PVcHpTycFZuWjRzOb9DfXh97QpwW5Vp1fkjU5IzfH+vzM63wAkjTGWWj5R6Oy98K8cdo59z2fQp8eDrrc8qK+ULV0Ta7hizdoOKSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YNKNP/qP; 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="YNKNP/qP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D78D1F000FF; Fri, 25 Sep 2026 10:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332950; bh=Kpnk6MnawoBYLhQ+4a3k7K9LCcTWWYhtwZeJWQF3CRU=; h=From:To:Cc:Subject:Date:Reply-To; b=YNKNP/qPHJyquximZ4J5ZkLvjAKHqeiSxCooHknkTDez+d4nAb4SBS7byDiXiU6zV qgg1Grl/VFje4NuRzJsd2BqBjlTF3nZhMS1ovU/RBCyYIBD4RPVUCdZcoRTGkCFIog YLjIAb2W+1o69qkNnuKbvFwuqxN6Sv05nddcnTIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98126: smb/client: validate new EOF for zero range Date: Fri, 25 Sep 2026 12:39:33 +0200 Message-ID: <2026092514-CVE-2026-98126-47cc@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=3002; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YzFGZcucPRlS8BVZ0VzjuBdCUaSETg9r2P6UbInkf3o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/IMOsBeF/LliduKnp+HuaXw7DbkVDlyPKQzrco+91 JE9bemSjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwlqGBZM3vfS2VlJ2/bdh tbNXOP+j566sCxnmGWid+B41Q+B344vtfC/n6wZHfF64FgA= 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: validate new EOF for zero range When FALLOC_FL_ZERO_RANGE is used without FALLOC_FL_KEEP_SIZE, smb3_zero_range() may extend EOF without checking RLIMIT_FSIZE, allowing the file to grow beyond the caller's file-size limit. Fix this by calling inode_newsize_ok() before sending the zero-range request when the operation would extend EOF. Reproducer, using a file on a CIFS mount: bash -c ' FILE=/mnt/cifs/repro trap "" SIGXFSZ ulimit -f 3072 truncate -s 2M "$FILE" fallocate --zero-range -o 0 -l 4M "$FILE" echo "fallocate rc=$?" stat -c "file size=%s" "$FILE" ' Before this change, the operation succeeds despite the 3 MiB limit: fallocate rc=0 file size=4194304 After this change, fallocate fails and leaves the file at 2 MiB. The Linux kernel CVE team has assigned CVE-2026-98126 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 72c419d9b073628d3b5b0b2fc787b724f1a8c726 and fixed in 6.12.111 with commit 3673f057b64abfa957e8ae84448db69369a5091a Issue introduced in 5.1 with commit 72c419d9b073628d3b5b0b2fc787b724f1a8c726 and fixed in 6.18.53 with commit 06a4f9049cb6dc319bceec2dc813ba89add8b828 Issue introduced in 5.1 with commit 72c419d9b073628d3b5b0b2fc787b724f1a8c726 and fixed in 7.2.7 with commit f320ca20c273a26cd779bdb2b2e4b076a95c76f6 Issue introduced in 5.1 with commit 72c419d9b073628d3b5b0b2fc787b724f1a8c726 and fixed in 7.3-rc2 with commit 88972e35750792e717af287dc71f42a03b5cbce4 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-98126 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/3673f057b64abfa957e8ae84448db69369a5091a https://git.kernel.org/stable/c/06a4f9049cb6dc319bceec2dc813ba89add8b828 https://git.kernel.org/stable/c/f320ca20c273a26cd779bdb2b2e4b076a95c76f6 https://git.kernel.org/stable/c/88972e35750792e717af287dc71f42a03b5cbce4