CVE-2026-90213: firewire: core: fix memory leak in error path of build_tree()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
firewire: core: fix memory leak in error path of build_tree()
In the error path of build_tree(), node instances can remain in the local linked list when the function returns.
Whenever an invalid value is detected in the self ID sequence, each allocated node instance is either an entry in the linked list or an entry in the ports array of its parent node. Therefore, the allocate node instances can be safely released by traversing the linked list from its head.
Release the remaining node instances with for_each_fw_node() before returning to the caller.
The Linux kernel CVE team has assigned CVE-2026-90213 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.22 with commit 3038e353cfaf548eb94f02b172b9dbe412abd24c and fixed in 6.12.110 with commit 848eaef4d30b385eb074214b7fa58287506158ad Issue introduced in 2.6.22 with commit 3038e353cfaf548eb94f02b172b9dbe412abd24c and fixed in 6.18.52 with commit d6037e42aa4dd29bb9d9f67ef438128c5bfe3448 Issue introduced in 2.6.22 with commit 3038e353cfaf548eb94f02b172b9dbe412abd24c and fixed in 7.2.6 with commit 6a990e74d4e848f32eda91d69e4f885604fc326d Issue introduced in 2.6.22 with commit 3038e353cfaf548eb94f02b172b9dbe412abd24c and fixed in 7.3-rc1 with commit 05bfb1327dc5fb61528bab31cd8f0c1e4bddec23
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-90213
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/firewire/core-topology.c
drivers/firewire/node-tree-test.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/848eaef4d30b385eb074214b7fa58287506158ad https://git.kernel.org/stable/c/d6037e42aa4dd29bb9d9f67ef438128c5bfe3448 https://git.kernel.org/stable/c/6a990e74d4e848f32eda91d69e4f885604fc326d https://git.kernel.org/stable/c/05bfb1327dc5fb61528bab31cd8f0c1e4bddec23