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=1795099621; b=vGl0RxPl5Euipgpg2gWnM2pCnbX5eQCUs3yGWyivEW/nzGT1B1k7Zc3tT2kGDSy5+Tby eFX14EDRA+3LNqI/xSLrdxTIkrhEmesNvpthfUAUex01BqKIkWo5R/NUOVAwnce0Cezep VADS2VVA1q4fN7jVnv8xE9it0K4RTeLwm3+lCFHcLvg0sGngpufOWO7HTbmjJecjtuSg6 u5iu3Si9qnb6nJjgd+71NH9XDuGY1oPLU4P9qx3oHeSQYog6uu4UL2Zqk5kQvTJyFs24e uU8wggXh5O0D0b2bBRpO/gUKn9ctnowTXhapXGh1CjYHEHlued9QTdIeqPMHonoGk/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099621; 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=aUsv6Lk+21KYqNBA6s4wuZS356jmk8mCk8mig9vyXOw=; b=1f+HTi+SgFlYnOWe5kWq4oOx2eV2fSgsFLf6WHEqwvFsitw9wqHF+BjpCMrpHYpER6J0 4BZCXU3tZxILQaqE8Nn2mlRghoJNbzXL306mjoTJExv5vl2T1OJ9CGcRiU1xNjsYUzvqx poeeeX89+vaPVXIU5OJbOOx7Z4SZ8iW7HpybUhVmV4WiQItEk/C8qCULmYe0mR6gzWgdd NLQ2/UY66tWPdHRrT69QX9XHd+n+dso1RePYVERCtZ2FQTIiLzzfFaWnAK1jrnc7F/jRD vgoWkTexqfrZM/A109dRsNsATxfWl3GzuzcQ96zP9VtSn+gnZQPZ/Nup3i0mSl/QI1g== 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=R3b114gx; 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 39E90606A320 for ; Thu, 19 Nov 2026 14:47:01 +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=R3b114gx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 804E31F000C4; Thu, 19 Nov 2026 14:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099620; bh=aUsv6Lk+21KYqNBA6s4wuZS356jmk8mCk8mig9vyXOw=; h=From:To:Cc:Subject:Date:Reply-To; b=R3b114gxaeH13AmgjKiUk/GWo8UlH+B9hvxv1ghhLrJ2QQN3LpZHEr5cI5uozjUgI Rvjts3q9+pamI3tm3MhIYa1dxDFDK8frhCZw2tM5+q3gwt1mNxfckE7PxYyWXJLRya ZjvEyOS2Y2p5YeziY6zc+mWBYh41kAtt/08Kgu5A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99400: xfs: reject out-of-range attribute value lengths in xfs_attr_copy_value Date: Thu, 19 Nov 2026 15:24:58 +0100 Message-ID: <2026111957-CVE-2026-99400-5c01@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=3139; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GK+AqufqrUvQScuJNo9oA0L0zFODG+tq5y2m4bmnaZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Wrdrlvt3r4kPnIFh4O0pahyXNFPth0vLj/wW5LwU 6OORS6pI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayxohhnsKBB0qK21j+u04X PLRv/hqfeVWqJgwLdi2Y+EbwVmOOd8Nyt+8RTgy1Nk6/AA== 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: reject out-of-range attribute value lengths in xfs_attr_copy_value xfs_attr_copy_value() takes the value length as a signed int and, for a remote xattr, is handed args->rmtvaluelen. That field is filled from the on-disk __be32 xfs_attr_leaf_name_remote.valuelen in xfs_attr3_leaf_getvalue(), so a crafted length such as 0x80000000 is stored into the signed rmtvaluelen as a negative number. The "buffer too small" guard in xfs_attr_copy_value() is a signed comparison: if (args->valuelen < valuelen) return -ERANGE; A negative valuelen therefore compares as smaller than the caller's buffer size, skips the -ERANGE path, and is then used as a copy length, leading to an out-of-bounds copy of a full remote block into a small getxattr(2) buffer on a mounted crafted image. Reject a value length that is negative or larger than the maximum xattr size before it is used, so a bogus on-disk length can no longer slip through the value copier. The Linux kernel CVE team has assigned CVE-2026-99400 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 and fixed in 6.12.117 with commit 91d0cf6244280e67bdc2787a60a10f635ac064c0 Issue introduced in 5.4 with commit 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 and fixed in 6.18.61 with commit c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 Issue introduced in 5.4 with commit 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 and fixed in 7.3.2 with commit c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 Issue introduced in 5.4 with commit 9df243a1a9e607e7cf5d20ee46edd5ec84b7e400 and fixed in 7.4-rc1 with commit 0643549ffecaeb716c0b75590a9b76dfa5eb35b3 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-99400 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/libxfs/xfs_attr_leaf.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/91d0cf6244280e67bdc2787a60a10f635ac064c0 https://git.kernel.org/stable/c/c2cd6b3b480ef2ae9752ed924a2199c8c90569a1 https://git.kernel.org/stable/c/c5c34a0a5a80ecd8fea9fff960907b2924d18cd9 https://git.kernel.org/stable/c/0643549ffecaeb716c0b75590a9b76dfa5eb35b3