Skip to contentSkip to conversation

CVE-2026-90219: RDMA/cxgb4: Free debugfs on registration failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

RDMA/cxgb4: Free debugfs on registration failure

c4iw_alloc() creates the per-device debugfs tree (dev->debugfs_root via setup_debugfs()), but it is removed only in c4iw_remove(), not in c4iw_dealloc(). When RDMA device registration fails, the registration worker's err_dealloc_ctx path calls c4iw_dealloc() directly, bypassing c4iw_remove(), so the debugfs dentries leak and outlive the freed c4iw_dev.

Move debugfs_remove_recursive() into c4iw_dealloc() so every path that frees ctx->dev also removes its debugfs tree.

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

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

	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 5.10.270 with commit 459b59f7ed56511d6529311cb4e5e482ebfcfb8e
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 5.15.221 with commit cd60992f09b7e83bfd3c76e3bb06b29f3e2fa0a8
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 6.1.188 with commit c332d9e7dce234d8bef78271d003a68ee943b61b
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 6.6.157 with commit f98e894ec029a752cf9c7f7834741bead0fb463d
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 6.12.110 with commit 479a7f90060e62bdd9bb4036ec0a70bf460f6d23
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 6.18.52 with commit 046425412529dbfca1433c8bef5641b271b4ab2a
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 7.2.6 with commit ea41b5630fa3d9877ce9ed8832cf5575f742bfbb
	Issue introduced in 5.8 with commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 and fixed in 7.3-rc1 with commit fe5c16bb6252dea6025b748257ddc3b2665495b0
	Issue introduced in 4.19.130 with commit 98fa991017981b52dcc4dc3924fc8e1e83e41bf4
	Issue introduced in 5.4.49 with commit af92e4a595e006b498c44b617ea38f697eca3469
	Issue introduced in 5.7.6 with commit 9c0cec79e5c914662c2cf98b4a729c0fcc8c872e

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

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:
drivers/infiniband/hw/cxgb4/device.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/459b59f7ed56511d6529311cb4e5e482ebfcfb8e
	https://git.kernel.org/stable/c/cd60992f09b7e83bfd3c76e3bb06b29f3e2fa0a8
	https://git.kernel.org/stable/c/c332d9e7dce234d8bef78271d003a68ee943b61b
	https://git.kernel.org/stable/c/f98e894ec029a752cf9c7f7834741bead0fb463d
	https://git.kernel.org/stable/c/479a7f90060e62bdd9bb4036ec0a70bf460f6d23
	https://git.kernel.org/stable/c/046425412529dbfca1433c8bef5641b271b4ab2a
	https://git.kernel.org/stable/c/ea41b5630fa3d9877ce9ed8832cf5575f742bfbb
	https://git.kernel.org/stable/c/fe5c16bb6252dea6025b748257ddc3b2665495b0