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 6349943E08D for ; Wed, 26 Aug 2026 14:38:35 +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=1787755116; cv=none; b=J1CAA7vxuaYNttZ68/MEKKDXgHDy+cQuuq6VWSDCUCDE3dAf9f8k/pa9XwgFRYVkPEc63/3TWdu6JfOb0sn6JtP29+5cBn8jRBwe0XwE58Y5+TPKseV8qpEU7Mg0XuhaT8gazGsgbC5LqaePpMdiylYa5p9tsTbRiSgDJKsR/L4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787755116; c=relaxed/simple; bh=bXQ/9LjXeq7vWNFLe5TC2xJJpGpH0nC+0a16XkfWxS0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PWnDds05qUGrsI0/+KR8mRkwe21KK12UnWNsWDMoBndpfQW/BwFkwuEQAoen0ML0peBn9fWSPUOURwq8rXjyTBOYmPVoryhqlX9npCe7IOGcEvbsyaaWJHOz/gWez0DnqJgqmIhy8WA2V4zn6F8/k78thKfjZuL8fv2DFQh39dk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s1xotdHL; 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="s1xotdHL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD0DF1F000E9; Wed, 26 Aug 2026 14:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787755115; bh=0XdlJcTkX3Stjo/Y8Zw/lIBK5BvPQfBcCJKGr0FLH3s=; h=From:To:Cc:Subject:Date:Reply-To; b=s1xotdHLSleOXZgAF0SIaKb3ZFc2wCbkrllhE0sa87Yz5zk1Q5BTFbOPXVu0TGI+2 lrH4oS3fDjuYI+DMwujnK2zXjux4uQ93wFBD01ZxkAUKeYaPc+MlneM8J9Jg2kkOnm +/yWpm8GNwymBFPUhZoWeZyxLlU9sqJLsvynklNs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80530: xfs: fix exchange-range reflink flag clearing issue with INO1_WRITTEN Date: Wed, 26 Aug 2026 16:37:26 +0200 Message-ID: <2026082603-CVE-2026-80530-4a96@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=3426; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cth/6nRCjUrI9uH6+UzCQhd7tRfdC9GUc6pbypeAF0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl9v/in75MTTeDN8K8sstzw8sty4YflT0pST6lUN66f9 FX82CP7jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgXaG+fXn1blTOFQ2dNvK d3/yCDNgvDT1HcNs9kl8R+NmeiWfygz9w1jd9mrVpaRCAA== 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-80530 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 6.12.105 with commit 2efbd8890b53f4756fdc7b0ef346fa514ffb7d66 Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 6.18.46 with commit 0f27b22343b63e10773e6781344640c2c753eec3 Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 7.1.10 with commit 03c9c9116e6da641424681f705698d7f5e2128e0 Issue introduced in 6.10 with commit 966ceafc7a437105ecfe1cadb3747b2965a260ca and fixed in 7.2 with commit b2d5a81dae385333f9734910277fbf94c78bd17f 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-80530 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/2efbd8890b53f4756fdc7b0ef346fa514ffb7d66 https://git.kernel.org/stable/c/0f27b22343b63e10773e6781344640c2c753eec3 https://git.kernel.org/stable/c/03c9c9116e6da641424681f705698d7f5e2128e0 https://git.kernel.org/stable/c/b2d5a81dae385333f9734910277fbf94c78bd17f