net: hsr: defer node table free until after RCU readers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.3, 5.10.259, 5.15.210, 6.1.176, 6.6.143, and 3 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: net: hsr: defer node table free until after RCU readers HSR node-list and node-status generic-netlink operations run under rcu_read_lock(). They walk hsr->node_db through hsr_get_next_node() and hsr_get_node_data(), but RTM_DELLINK teardown removes the same node table with plain list_del() and frees each node immediately. That lets a generic-netlink reader hold a struct hsr_node pointer across hsr_dellink(). In a KASAN build, widening the reader window after hsr_get_next_node() obtains the node reproduces a slab-use-after-free when the reader copies node->macaddress_A; the freeing stack is hsr_del_nodes() from hsr_dellink(). Use list_del_rcu() and defer the free through the existing hsr_free_node_rcu() callback. This matches the lifetime rule used by the HSR prune paths, which already delete nodes with list_del_rcu() and call_rcu().
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 0ea70fb46940620848c08d9d399455c9e82fecdb; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 8be6685cdd1255bcc85f9b59e4bfc313aefc5c1b; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in c5580114e0492bcd2e0a37613ed4c311e3fa3d4d; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 7713f4aafb577ff49fa67f0488d9c7dddc64d6ce; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 6324423a8e6591f41a16c09a8f9a84e554ac147c; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 48d09dea506de667eb55f939bf98eec721effbdb; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in 8c3af18bb0d7c921a5219194037509463eb2ffde; From b9a1e627405d68d475a3c1f35e685ccfb5bbe668 · fixed in aaec7096f9961eb223b5b149abe9495525c205d9; From 5.2.12 · fixed in 5.3
- Linux Linux
5.3
- KernelLinux
From 5.3.0 · fixed in 5.10.259; From 5.11.0 · fixed in 5.15.210; From 5.16.0 · fixed in 6.1.176; From 6.2.0 · fixed in 6.6.143; From 6.7.0 · fixed in 6.12.93; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.0.11
References 8
git.kernel.org
- stable/c/0ea70fb46940620848c08d9d399455c9e82fecdb
- stable/c/8be6685cdd1255bcc85f9b59e4bfc313aefc5c1b
- stable/c/c5580114e0492bcd2e0a37613ed4c311e3fa3d4d
- stable/c/7713f4aafb577ff49fa67f0488d9c7dddc64d6ce
- stable/c/6324423a8e6591f41a16c09a8f9a84e554ac147c
- stable/c/48d09dea506de667eb55f939bf98eec721effbdb
- stable/c/8c3af18bb0d7c921a5219194037509463eb2ffde
- stable/c/aaec7096f9961eb223b5b149abe9495525c205d9