Skip to contentSkip to conversation

CVE-2026-43295: rapidio: replace rio_free_net() with kfree() in rio_scan_alloc_net()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 8

lore
Share & tools
lore
#0 lore raw

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

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

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

rapidio: replace rio_free_net() with kfree() in rio_scan_alloc_net()

When idtab allocation fails, net is not registered with rio_add_net() yet, so kfree(net) is sufficient to release the memory. Set mport->net to NULL to avoid dangling pointer.

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

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

	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.10.252 with commit 83e579c2f7f6b1706323d744833b26470049dcc2
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.15.202 with commit 34a4f233df5eef5f1f113b2196142c0568b387f8
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.1.165 with commit fecf292c6691970897396190855aa38826b7104e
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.6.128 with commit 649c2e853608cad0b0cba545555d168e67f094b3
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.12.75 with commit 87272e3e70ec4b666885bd520ff77463c11444ef
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.18.16 with commit e5a732bfe29451e16abf9c6f07ce5948b22f3d59
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.19.6 with commit 78812c4fb7ed242d5961bf1337a49070d6487c94
	Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 7.0 with commit 666183dcdd9ad3b8156a1df7f204f728f720380f

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

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/rapidio/rio-scan.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/83e579c2f7f6b1706323d744833b26470049dcc2
	https://git.kernel.org/stable/c/34a4f233df5eef5f1f113b2196142c0568b387f8
	https://git.kernel.org/stable/c/fecf292c6691970897396190855aa38826b7104e
	https://git.kernel.org/stable/c/649c2e853608cad0b0cba545555d168e67f094b3
	https://git.kernel.org/stable/c/87272e3e70ec4b666885bd520ff77463c11444ef
	https://git.kernel.org/stable/c/e5a732bfe29451e16abf9c6f07ce5948b22f3d59
	https://git.kernel.org/stable/c/78812c4fb7ed242d5961bf1337a49070d6487c94
	https://git.kernel.org/stable/c/666183dcdd9ad3b8156a1df7f204f728f720380f