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=1795154357; b=st9v3FsBhEpzxzy+PKxTWVkU1oyzAlgpeulaZ6dWsar67SxnrLz/A+QZdG3umQm3In5l m67nx+C0/zlMgsx7RTPXHLKBJ1rVUL1Z4jy+KswCoKDHWui3Hct4O5W7tcA9uwPSybmzd MWOFR06wmC5QWDw284zyBVyfQmC5zzDQWwq76WxWj6niWA3DsHB8cll0PWJDTHKz4XjZW iF3qX+zIQEWxGWHlC6wqWFgiIh+UmHXgY6S49EYpQFuJ82R4LP20mVf4w6LZrg7CTsP2q xrs9IczUGABCUY/Sq/yqYv5MStRFQ7/e4UVayTF6X5iKp1nay87NuGDMwkqXU8IgKnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154357; 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=nCipi4SAe6y3A/ckk315JgdbSIPoXkKW4RybteBnZCE=; b=koh7H+uQQIg/Gsl0yEwJcZ/3IQugIkeh95wKqzlCchGguEPU8d6d2/O0xnCvQYBnWpUo /rYtRXDBNICaRwVfilhOCbiGGTxkbA/3LqQ2Q+66Jsa7iLRr/NRbUhhjZMzoA1S/nHv5a i3JPDx/2Yur506KSrR79pmrv7PIvA6PpPLdd116QSFhuo0PkUHC1YX/1U0wDmgaGddpLX tldpXhJrxpfBUKW9gc0DWYczcknt+7BKQUWMS/t6K4A8KkIT412NuuLyOmd+0oesathQ6 DXFaO1drD407Z/OKCH8GysXDI4rByIqMMG5Y2tFy+TjZhYy96m3j8mGRsv3/SFaI7XQ== 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=gbCvdIJy; 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 6CF97606A33F for ; Fri, 20 Nov 2026 05:59:17 +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=gbCvdIJy Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDE6A1F000C6; Fri, 20 Nov 2026 05:59:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154357; bh=nCipi4SAe6y3A/ckk315JgdbSIPoXkKW4RybteBnZCE=; h=From:To:Cc:Subject:Date:Reply-To; b=gbCvdIJyNPVCB+CADOGrls0rdui7cK2am8Gk9WQKeeBMhK1Tf62E5/EVKgSHcrCY9 rTGlKwwA1135awq3hX1rUUc2O5zeHPYRkRjQ5ba62jhxPkrxZG9IzXvoh1v6EiB3Py 6Ysl18BOrLeCDiuPWmTmViN9d5r6qyBkVRuSuAlI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99678: xfs: cap the block count of xfs_iomap_write_direct() at one extent Date: Fri, 20 Nov 2026 06:51:04 +0100 Message-ID: <2026112053-CVE-2026-99678-7d36@gregkh> X-Mailer: git-send-email 2.56.1 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=2604; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R9JeBPyYYmqEvP/8kvWSdYORJG297ndgHDF0ffgVkBQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7zc9WsHxg8XGLM5KX9Ts5PJ7k7Y2sYa89szzM7/gF D/TN7SzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaycw/DXOlti5+edX+ekMr4 +jLTdMawVuaZcxnmOx45/lciWU3cS4bZ9kLG07dvn89xBAA= 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: xfs: cap the block count of xfs_iomap_write_direct() at one extent xfs_iomap_write_direct() reserves blocks for the whole count in an unsigned int. For a pNFS layout the client chooses that count, and an RW LAYOUTGET for 16 TiB wraps the reservation and shuts XFS down. xfs_bmapi_write() maps at most XFS_MAX_BMBT_EXTLEN blocks here, so cap the count at that. nfsd asks again for the rest. The other callers get the same mapping as before. The Linux kernel CVE team has assigned CVE-2026-99678 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 6.12.118 with commit 7f4972601b3faa66524e44df9e929fd491e35bfd Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 6.18.64 with commit 73b0f3d5201f741125061d8559e9631f1af4cb39 Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 7.3.5 with commit 83e0edb26d05515083784db26a02a809371ccdb3 Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 7.4-rc2 with commit 66d1ce09ebd72709f8d739630c39f440445173fd 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-99678 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/xfs/xfs_iomap.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/7f4972601b3faa66524e44df9e929fd491e35bfd https://git.kernel.org/stable/c/73b0f3d5201f741125061d8559e9631f1af4cb39 https://git.kernel.org/stable/c/83e0edb26d05515083784db26a02a809371ccdb3 https://git.kernel.org/stable/c/66d1ce09ebd72709f8d739630c39f440445173fd