CVE-2026-100071: net: hsr: free learned nodes on device setup failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: hsr: free learned nodes on device setup failure
hsr_dev_finalize() can fail after a lower-device RX handler has already been registered (slave A is added before the failable slave B and interlink adds). RX handlers run in softirq regardless of the master's state, so frames received in that window can learn dynamic nodes into node_db, and the error unwind never releases them.
Free both owned dynamic databases in the unwind, mirroring hsr_dellink(). proxy_node_db is provably empty on every current error exit (only interlink RX feeds it, and the interlink add is the last failable step) and is freed for symmetry. The order is safe:hsr_del_port() unregisters each RX handler with synchronize_net() before hsr_del_nodes() runs, which removes remaining entries with list_del_rcu() and defers their release with call_rcu() for readers already under RCU.
The Linux kernel CVE team has assigned CVE-2026-100071 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 6.1.188 with commit e691eee886871b933d772ffc76d66c80b4c0a25e Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 6.6.157 with commit 0a340ffd96943a49a78e367efac9517ca767d99b Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 6.12.110 with commit f7289e3492f2694dccd3d79287e0e31879b58650 Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 6.18.52 with commit 65702339b3e9fd792f65d4b740928798194d86ce Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 7.2.6 with commit 49b01f2939abc676a6f9a118f07a10110ee5f683 Issue introduced in 3.17 with commit 81ba6afd6e6443d2bf4bf40f16df1f1f91c603f8 and fixed in 7.3-rc1 with commit 7f16289b91eb316f170a6bd22d32e6c632f6a5b6
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-100071
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/hsr/hsr_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/e691eee886871b933d772ffc76d66c80b4c0a25e https://git.kernel.org/stable/c/0a340ffd96943a49a78e367efac9517ca767d99b https://git.kernel.org/stable/c/f7289e3492f2694dccd3d79287e0e31879b58650 https://git.kernel.org/stable/c/65702339b3e9fd792f65d4b740928798194d86ce https://git.kernel.org/stable/c/49b01f2939abc676a6f9a118f07a10110ee5f683 https://git.kernel.org/stable/c/7f16289b91eb316f170a6bd22d32e6c632f6a5b6