Skip to contentSkip to conversation

CVE-2026-23251: xfs: only call xf{array,blob}_destroy if we have a valid pointer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

xfs: only call xf{array,blob}_destroy if we have a valid pointer

Only call the xfarray and xfblob destructor if we have a valid pointer, and be sure to null out that pointer afterwards. Note that this patch fixes a large number of commits, most of which were merged between 6.9 and 6.10.

The Linux kernel CVE team has assigned CVE-2026-23251 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.12.75 with commit 5de5be3ed7e7fa4ebde4f4b58fb9a629644f9202
	Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.18.16 with commit c9ccefacae0d8091683447bc338bd7741417039d
	Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.19.6 with commit d827612c81a26cc1dd83a211cfcb5ad8765da0c4
	Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.0-rc1 with commit ba408d299a3bb3c5309f40c5326e4fb83ead4247

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-23251

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/scrub/agheader_repair.c
fs/xfs/scrub/attr_repair.c
fs/xfs/scrub/dir_repair.c
fs/xfs/scrub/dirtree.c
fs/xfs/scrub/nlinks.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/5de5be3ed7e7fa4ebde4f4b58fb9a629644f9202
	https://git.kernel.org/stable/c/c9ccefacae0d8091683447bc338bd7741417039d
	https://git.kernel.org/stable/c/d827612c81a26cc1dd83a211cfcb5ad8765da0c4
	https://git.kernel.org/stable/c/ba408d299a3bb3c5309f40c5326e4fb83ead4247