Skip to contentSkip to conversation

CVE-2026-43041: net: qrtr: replace qrtr_tx_flow radix_tree with xarray to fix memory leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

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

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

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

net: qrtr: replace qrtr_tx_flow radix_tree with xarray to fix memory leak

__radix_tree_create() allocates and links intermediate nodes into the tree one by one. If a subsequent allocation fails, the already-linked nodes remain in the tree with no corresponding leaf entry. These orphaned internal nodes are never reclaimed because radix_tree_for_each_slot() only visits slots containing leaf values.

The radix_tree API is deprecated in favor of xarray. As suggested by Matthew Wilcox, migrate qrtr_tx_flow from radix_tree to xarray instead of fixing the radix_tree itself [1]. xarray properly handles cleanup of internal nodes — xa_destroy() frees all internal xarray nodes when the qrtr_node is released, preventing the leak.

[1] https://lore.kernel.org/all/[email protected]/T/

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

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

	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 5.10.253 with commit f2dd9aaf6e2861337f5835f877a5b2becaf4b015
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 5.15.203 with commit 4b75ff0aedd6ade1018ad4a3a9d8336794e36e42
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 6.1.168 with commit ff134cc43972d7ddceff8cfd36cf6b9eaafc00b3
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 6.6.134 with commit 0fda873092b541bb5a9b87d728a2429f863f8cfa
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 6.12.81 with commit 69402908e277dd164bf8d7c8fd0513c0fac28e9e
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 6.18.22 with commit f2664bc4f0f356f17c2094587a2b3665e3867e44
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 6.19.12 with commit 5d2249eefaca59908fe3c264b8eca526424dcfbe
	Issue introduced in 5.6 with commit 5fdeb0d372ab33b4175043a2a4a1730239a217f1 and fixed in 7.0 with commit 2428083101f6883f979cceffa76cd8440751ffe6

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

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:
net/qrtr/af_qrtr.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/f2dd9aaf6e2861337f5835f877a5b2becaf4b015
	https://git.kernel.org/stable/c/4b75ff0aedd6ade1018ad4a3a9d8336794e36e42
	https://git.kernel.org/stable/c/ff134cc43972d7ddceff8cfd36cf6b9eaafc00b3
	https://git.kernel.org/stable/c/0fda873092b541bb5a9b87d728a2429f863f8cfa
	https://git.kernel.org/stable/c/69402908e277dd164bf8d7c8fd0513c0fac28e9e
	https://git.kernel.org/stable/c/f2664bc4f0f356f17c2094587a2b3665e3867e44
	https://git.kernel.org/stable/c/5d2249eefaca59908fe3c264b8eca526424dcfbe
	https://git.kernel.org/stable/c/2428083101f6883f979cceffa76cd8440751ffe6