Skip to contentSkip to conversation

CVE-2026-46005: xfs: fix a resource leak in xfs_alloc_buftarg()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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: fix a resource leak in xfs_alloc_buftarg()

In the error path, call fs_put_dax() to drop the DAX device reference.

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

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

	Issue introduced in 6.0 with commit 6f643c57d57c56d4677bc05f1fca2ef3f249797c and fixed in 6.6.140 with commit 82fb9da6477d08bdab954dc7bc081a41f2f9cae6
	Issue introduced in 6.0 with commit 6f643c57d57c56d4677bc05f1fca2ef3f249797c and fixed in 6.12.86 with commit 28a6c132b8c6e5eeefa889c4fb43d65b12989d48
	Issue introduced in 6.0 with commit 6f643c57d57c56d4677bc05f1fca2ef3f249797c and fixed in 6.18.27 with commit 5c293a1e1ef0f838772d20ae8afae4cbd87cd3f9
	Issue introduced in 6.0 with commit 6f643c57d57c56d4677bc05f1fca2ef3f249797c and fixed in 7.0.4 with commit 5804cb507233ed767a83ac70527b2f6c4566ec75
	Issue introduced in 6.0 with commit 6f643c57d57c56d4677bc05f1fca2ef3f249797c and fixed in 7.1-rc1 with commit 29a7b2614357393b176ef06ba5bc3ff5afc8df69

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

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_buf.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/82fb9da6477d08bdab954dc7bc081a41f2f9cae6
	https://git.kernel.org/stable/c/28a6c132b8c6e5eeefa889c4fb43d65b12989d48
	https://git.kernel.org/stable/c/5c293a1e1ef0f838772d20ae8afae4cbd87cd3f9
	https://git.kernel.org/stable/c/5804cb507233ed767a83ac70527b2f6c4566ec75
	https://git.kernel.org/stable/c/29a7b2614357393b176ef06ba5bc3ff5afc8df69