一线运维实战手记 · 云计算 · 数据库 · 故障排查
2026年9月26日

CVE-2026-100071 – In the Linux kernel, the following vulnerability has been resolved: net: hsr: free learne

未分类
📑 文章目录

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.