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 9508D48F84B for ; Fri, 25 Sep 2026 10:23:45 +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=1790331826; cv=none; b=Ng6h49Qyk4R15bMDbZ6nuTkCGcHx8yaChIRqkeOFTYOPlA5bYEkBq838ZIQkIe1wYz3uY9YP9wt6xmB4yYVv0QCfhEHWvpsteZdDVhIQ7kgfz+UglziY9KOn11SKVo5X+xnj6YbFn9+FmRRgwZm6t45d3hZjO/DntQzpPSWjqCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331826; c=relaxed/simple; bh=EDgWEGLzSaxbCIV9VIL6z4MbJt3jJ1FgByK5rVgEof4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uSuFulyVcNPv4lN0+wLUHQxn1y4Fju7CQlSNHw1O70NljBZFzkVOcVWCh5klBM4YOAw0NhB4n2fa68VpDGtgI3D9j1dVdqHSqcsiPxkKVnbJ3FQ2AfwFkmfGT5uYYW/gzEiAXf8eUhCdJbPln/mpSkLL8el3SeBLFBHStYbjeqM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bCGyLaDS; 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="bCGyLaDS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFCAF1F000FF; Fri, 25 Sep 2026 10:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331825; bh=vNtr7hHrAWdv50g+5J5dqa70Z3XHvE4jW2E/EqO8Cco=; h=From:To:Cc:Subject:Date:Reply-To; b=bCGyLaDSSQDzw6492BvD6bm5EH2OiqVKdrSpbPKyEZX6W0s/XWcl0Ya38tWEJexGm i/kSQVIERrVrnbgpr058f+Vq6lcki+raeLX4AyOE0vkBiLcKQnf8333IUXyZO73ceQ NsGOB6/PlSEqe2bp1TVAMDNCf5SVAfxcQ31xSxA0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97547: xfs: fix exchange-range reflink flag clearing issue with INO1_WRITTEN Date: Fri, 25 Sep 2026 12:22:07 +0200 Message-ID: <2026092550-CVE-2026-97547-4ad3@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=3429; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=maepbodnb0Ex2NYeMSs1GVgOujBmXvp4ExRFs8CYA2Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvO3aV0fNdBLhi9p8elPJApaYTy86dCKXCH7ZW7ui1 GG9m0JURywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk6QjDgmPR7t4nfmx+97Zn 76rsjyW1dzk6ixnmyj/07J3yZtub8OZYR46f/jt/vSifBAA= 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 exchange-range reflink flag clearing issue with INO1_WRITTEN When exchanging two full-file ranges, xmi_can_exchange_reflink_flags() can move the reflink inode flag from the file that currently has it to the other file, as long as exactly one side is marked. This assumes that the file contents, and therefore all shared extents, are exchanged. That assumption is not true when XFS_EXCHMAPS_INO1_WRITTEN is set. xfs_exchmaps_can_skip_mapping() can skip hole and unwritten mappings from file1, so an exchange can complete without moving every mapping that the earlier flag-swap decision accounted for. In that case the post-operation cleanup can clear the reflink flag from an inode that still owns shared written extents. Later writes then take the non-reflink write path and may update blocks that should still have been protected by CoW, which shows up as data corruption between reflink-related files. Fix this by disabling the reflink flag exchange whenever XFS_EXCHMAPS_INO1_WRITTEN is requested. The contents exchange can still proceed; the conservative outcome is that both inodes keep the reflink flag. The regular reflink flag cleanup path can drop the extra flag later once the inode no longer has shared extents. The Linux kernel CVE team has assigned CVE-2026-97547 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 6.12.111 with commit 56f87ac2b9543be2be529b831666682e6df4bc40 Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 6.18.53 with commit fac32b9950a2aab3f8659d23b2947b8fb305c3fe Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 7.2.7 with commit 8ae30b9a8c207f9bd03a98eda7b5d641daa79bdb Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 7.3-rc3 with commit a23eca88448e52eb1a81549862df7adce794fafb 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-97547 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_exchmaps.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/56f87ac2b9543be2be529b831666682e6df4bc40 https://git.kernel.org/stable/c/fac32b9950a2aab3f8659d23b2947b8fb305c3fe https://git.kernel.org/stable/c/8ae30b9a8c207f9bd03a98eda7b5d641daa79bdb https://git.kernel.org/stable/c/a23eca88448e52eb1a81549862df7adce794fafb