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 4491C48FF66 for ; Fri, 25 Sep 2026 10:23:57 +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=1790331838; cv=none; b=qcRm0uOJeQQwhz361lG0hcGaKwHYBSdtZK+7lzbpAE5V9f3AgWEt/Dxs/duHM6xG6y1BGNRhu/+ADG03VKhbC/p+yUQRFkCl168YoXrJfn80pP+GOXzynxi3V9KUm6miKOLfy9HZp3K5HBa9ZhOtD0k5Mzb47K4aAJUKN7btNts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331838; c=relaxed/simple; bh=xBLaSsT2hXAVKSZTAYzWU5lIOxXXuK3oh+qXCEzBEVQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sZnk59UQsCTZve7DzMOEEQ05PJh0paZ/pRBTvGFJupgErrbkn8B8eA1lJf74I5RYZKfKxUE5wIGQpN3s7weyW/Zst0op3QkevnDmuGSyq3Aj4ehetfDjw2lLc6+ZG01LDlq+XE/pNuoLu9gDu+WwR7P+9506uMxP+5YqezZtE0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LHHZ/lVo; 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="LHHZ/lVo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 954681F000FF; Fri, 25 Sep 2026 10:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331837; bh=TRGoWxFHARbv3L4/4IYEpevLToDXN/JXhqtUx0VWTek=; h=From:To:Cc:Subject:Date:Reply-To; b=LHHZ/lVoi6uU/1WSC5IpVupmVMYdfpZyA4Aq6ZfMCtx4hTSma8FNZzO1rE6uTeBjy N9CskuJtcw8GzYyiyrCjkQJIh0YE4qSaB4lWY7xp6XIfKKzXSHX7NTfD3BjjkW7k8z YJgurWuSPseYpdPnt1j0MR4eDWpO+Qb3b84jcT30= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97551: xfs: initialise args->total for parent pointer updates Date: Fri, 25 Sep 2026 12:22:11 +0200 Message-ID: <2026092550-CVE-2026-97551-0192@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=3054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2oTQagkTSENhUs0dgDzRDFQJD23BfqO+YmGbUSRYTws=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvO23+QpXbDHX9J3Lly1xV3xKxbTLy17Fqc76JuqgN HHPdM/tHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbxkMC3ZPU8id0LPeZYdO Dpd166JNQYJq1xkWHHG4xjFjTnvlkX1+gtv2Gcf9Pqr7EAA= 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: initialise args->total for parent pointer updates xfs_parent_da_args_init() builds an xfs_da_args from a zeroed xfs_parent_args (kmem_cache_zalloc), leaving args->total == 0. xfs_da_grow_inode_int() treats that field as a running block reservation and subtracts from it; because it is an xfs_extlen_t (uint32_t), the first attr-fork growth wraps it to ~0U. That defeats the free-space check in xfs_alloc_space_available(), and when it coincides with an AG that has exactly zero available blocks the allocation is clamped to maxlen 0 and returns -ENOSPC, which xfs_defer_finish_noroll() escalates to a filesystem shutdown. Set args->total the way the log recovery path does (xfs_attri_recover_work(), xfs_attr_item.c:706), in the add and replace paths that can grow the fork. Removals and lookups never grow it, so they leave the field alone, matching that switch. The Linux kernel CVE team has assigned CVE-2026-97551 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit b7c62d90c12c6cc86f10b8a62cefe0029374b6ff and fixed in 6.12.111 with commit 9ad85bce62cadfdf4242f6e6bbff2a52e51d30f1 Issue introduced in 6.10 with commit b7c62d90c12c6cc86f10b8a62cefe0029374b6ff and fixed in 6.18.53 with commit c66e138af626cad4210da449996ae9e07ee63add Issue introduced in 6.10 with commit b7c62d90c12c6cc86f10b8a62cefe0029374b6ff and fixed in 7.2.7 with commit ac9032882d673dd6679e1d873a2dc0131a1aeb43 Issue introduced in 6.10 with commit b7c62d90c12c6cc86f10b8a62cefe0029374b6ff and fixed in 7.3-rc3 with commit 8e4ebb6afaa34bd2e8ce52da231003d24111c2d6 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-97551 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_parent.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/9ad85bce62cadfdf4242f6e6bbff2a52e51d30f1 https://git.kernel.org/stable/c/c66e138af626cad4210da449996ae9e07ee63add https://git.kernel.org/stable/c/ac9032882d673dd6679e1d873a2dc0131a1aeb43 https://git.kernel.org/stable/c/8e4ebb6afaa34bd2e8ce52da231003d24111c2d6