CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: ocelot: call dsa_tag_8021q_unregister() under rtnl_lock() on driver remove
When the tagging protocol in current use is "ocelot-8021q" and we unbind
the driver, we see this splat:
$ echo'0000:00:00.2' > /sys/bus/pci/drivers/fsl_enetc/unbind
mscc_felix 0000:00:00.5 swp0: left promiscuous mode
sja1105 spi2.0: Link is Down
DSA: tree 1 torn down
mscc_felix 0000:00:00.5 swp2: left promiscuous mode
sja1105 spi2.2: Link is Down
DSA: tree 3 torn down
fsl_enetc 0000:00:00.2 eno2: left promiscuous mode
mscc_felix 0000:00:00.5: Link is Down
------------[ cut here ]------------RTNL: assertion failed at net/dsa/tag_8021q.c (409)
WARNING: CPU: 1 PID: 329 at net/dsa/tag_8021q.c:409dsa_tag_8021q_unregister+0x12c/0x1a0Modules linked in:CPU: 1 PID: 329 Comm: bash Not tainted 6.5.0-rc3+ #771
pc : dsa_tag_8021q_unregister+0x12c/0x1a0lr : dsa_tag_8021q_unregister+0x12c/0x1a0Call trace:dsa_tag_8021q_unregister+0x12c/0x1a0felix_tag_8021q_teardown+0x130/0x150felix_teardown+0x3c/0xd8dsa_tree_teardown_switches+0xbc/0xe0dsa_unregister_switch+0x168/0x260felix_pci_remove+0x30/0x60pci_device_remove+0x4c/0x100device_release_driver_internal+0x188/0x288device_links_unbind_consumers+0xfc/0x138device_release_driver_internal+0xe0/0x288device_driver_detach+0x24/0x38unbind_store+0xd8/0x108drv_attr_store+0x30/0x50---[ end trace 0000000000000000 ]---------------[ cut here ]------------RTNL: assertion failed at net/8021q/vlan_core.c (376)
WARNING: CPU: 1 PID: 329 at net/8021q/vlan_core.c:376vlan_vid_del+0x1b8/0x1f0CPU: 1 PID: 329 Comm: bash Tainted: G W 6.5.0-rc3+ #771
pc : vlan_vid_del+0x1b8/0x1f0lr : vlan_vid_del+0x1b8/0x1f0dsa_tag_8021q_unregister+0x8c/0x1a0felix_tag_8021q_teardown+0x130/0x150felix_teardown+0x3c/0xd8dsa_tree_teardown_switches+0xbc/0xe0dsa_unregister_switch+0x168/0x260felix_pci_remove+0x30/0x60pci_device_remove+0x4c/0x100device_release_driver_internal+0x188/0x288device_links_unbind_consumers+0xfc/0x138device_release_driver_internal+0xe0/0x288device_driver_detach+0x24/0x38unbind_store+0xd8/0x108drv_attr_store+0x30/0x50DSA: tree 0 torn down
This was somewhat not so easy to spot, because "ocelot-8021q" is not the
default tagging protocol, and thus, not everyone who tests the unbinding
path may have switched to it beforehand. The default
felix_tag_npi_teardown() does not require rtnl_lock() to be held.