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=1793187609; b=oUjdtR7Bj5xG2hlpO9mR1JgJyBRBPiGWdQp8rCZM9wOYhKW7T1TDmRJjTcLAsrLm4OlN kBiqDgYcYRW3cpWmNWWbfHIaGsCeKC/puqt1l025ETowWweR9iAGzR23x+gTZj/ftCMJx 7x2VZCfq06AuPu5D7mDmDvtD6gZoeoCNm+OwzLyaXmv/+mLRsZHtnjSl7kBIQ6U++6Bs3 Zw6AD+Z+N6RH/atIeHLo6I72Mau4tW7F4X6BAHB0d/MJMYuCCsKZsQ5aGefseEUAgU26y 9sPWx1ue5ccGZRpunXDk3ayI6dbRTNPfaL8RZiVf7/a9Ky97JLW2KkM1G2bj4GL8f8Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187609; 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=2A9CpCnlzvi5eVEO+YOeYs56fNEUMQ91QySPPafOQnU=; b=fVmxPJiyVYXkUYxHc77sBDROO2FQtxgBBafSE3tf24kEKJ5uVKVY1uvJGBVIVB3E06YD R5z6Hxqpj56kvVXN5DUxVauF3J6nVI4QSFweJyVGitzERb8Ws/J9xdcTujon9TLhgRbZv E5VWwzenvzyjsi477HHehLnwhwBrSJQglQLJj7TAqZVkJ69QnKSKOwILKsXOmFispKIfq 1nDFAR6/0zX/CeICTCa8jnJD/lBpqGPdXBSmx7966Y8J5vVKp2fOQ98MuzNZsnQp8C4fb Iw60KOPJUnHNIQ5g2oGaKb7lcw9jibGVYGzaq4w+03HXlBnRFBrO0/DeiHqKV6pCoSw== 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=qswYR6sK; 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 DDFDE606A31A for ; Wed, 28 Oct 2026 11:40:08 +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=qswYR6sK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CE981F01825; Wed, 28 Oct 2026 11:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187608; bh=2A9CpCnlzvi5eVEO+YOeYs56fNEUMQ91QySPPafOQnU=; h=From:To:Cc:Subject:Date:Reply-To; b=qswYR6sKERK6VSA3UCGRXd7ugIgxx1ySnisE+A9abbCh/zYBQ/OmPzxK23ePNpcxR hQ0WUzyWLw+rI//maOt0kFUfkgC1YquY4L7KL/yyNl8uZp5VbufjWrLS4/iP4vMtGi XPsBIg9O6PrHg6bGiZKqt4opet9KuICdD/CvmXOs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99131: xfs: fix capability check in xfs Date: Wed, 28 Oct 2026 11:35:18 +0100 Message-ID: <2026102859-CVE-2026-99131-0cb0@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=3054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cRGReAxd+ro974AiPp53Lra0oPSq1fdul2eWsY7jspQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1/+psrQ/i/2tNO9vpzWhQdOPuXeqnxYw/P9xoe74 +rtmxsudsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE9tUyzPeTL71hNnXbl5UW FpFv72+dNuez5jeGOfwPtkefvGwsy+cnqM6uMzFh0erJEgA= 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: fix capability check in xfs An user reported a bug where he managed to evade group's quota by changing a file's gid to a different group id the same user belonged to, even though quotas were enforced on both gids and the file's size was big enough to exceed the quota's hardlimit. Commit eba0549bc7d1 replaced a capable() call by a has_capability_noaudit() to prevent unnecessary selinux audit messages. Turns out that both calls have slightly different semantics even though their documentation seems similar. Where in a nutshell: capable() - Tests the task's effective credentials has_ns_capability_noaudit() - Tests the task's real credentials This most of the time has no practical difference but in some cases like changing attrs (specifically group id in this case) through a NFS client this will allow the quota code to use XFS_QMOPT_FORCE_RES, effectively bypassing quota accounting checks. Using instead ns_capable_noaudit() should fix this issue and prevent selinux audit messages. This also fix the remaining calls to has_capability_noaudit() The Linux kernel CVE team has assigned CVE-2026-99131 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit eba0549bc7d100691c13384b774346b8aa9cf9a9 and fixed in 6.18.59 with commit 19a1a22029ad3ae3604c763af6bd1195cb73648f Issue introduced in 5.18 with commit eba0549bc7d100691c13384b774346b8aa9cf9a9 and fixed in 7.2.13 with commit 7809ac0161c7c5f52ed348fb1ec683b2b454a83e Issue introduced in 5.18 with commit eba0549bc7d100691c13384b774346b8aa9cf9a9 and fixed in 7.3 with commit e2f62a9744ebad3bcb6347a648e615026e9efeff 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-99131 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_fsmap.c fs/xfs/xfs_ioctl.c fs/xfs/xfs_iops.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/19a1a22029ad3ae3604c763af6bd1195cb73648f https://git.kernel.org/stable/c/7809ac0161c7c5f52ed348fb1ec683b2b454a83e https://git.kernel.org/stable/c/e2f62a9744ebad3bcb6347a648e615026e9efeff