Skip to contentSkip to conversation

CVE-2026-46030: EDAC/versalnet: Fix device_node leak in mc_probe()

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:

EDAC/versalnet: Fix device_node leak in mc_probe()

of_parse_phandle() returns a device_node reference that must be released with of_node_put(). The original code never freed r5_core_node on any exit path, causing a memory leak.

Fix this by using the automatic cleanup attribute __free(device_node) which ensures of_node_put() is called when the variable goes out of scope.

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

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

	Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 6.18.27 with commit b6e61356ad24987be40bf25369d22dd8dd00a513
	Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 7.0.4 with commit 17e136993b2b5111d1ee1c57bbd188ae0bb0e128
	Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 7.1-rc1 with commit 5c709b376460ff322580c41600e31c02f7cc0307

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

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/edac/versalnet_edac.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/b6e61356ad24987be40bf25369d22dd8dd00a513
	https://git.kernel.org/stable/c/17e136993b2b5111d1ee1c57bbd188ae0bb0e128
	https://git.kernel.org/stable/c/5c709b376460ff322580c41600e31c02f7cc0307