{"id":"CVE-2026-99401","aliases":["CVE-2026-99401"],"related":[],"kind":"vulnerability","state":"published","title":"rtnetlink: wait for RCU readers in rtnl_link_unregister()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrtnetlink: wait for RCU readers in rtnl_link_unregister()\n\nrtnl_link_ops_get() finds ops on link_ops under rcu_read_lock() and only\nthen takes ops->srcu. rtnl_link_unregister() unlinks ops, then calls\nsynchronize_srcu() and cleanup_srcu_struct() without first waiting for\nRCU readers. A reader that found ops before list_del_rcu() and has not yet\ntaken ops->srcu is not waited for.\n\nSuch a reader then locks a cleaned-up srcu_struct and keeps using ops\nafter the module that owns it is gone. rtnl_newlink() and\nrtnl_dump_ifinfo() both look up ops without RTNL, the latter for any\nuser that dumps links filtered by kind.\n\nWith delays added between the lookup and srcu_read_lock() in\nrtnl_link_ops_get(), and before rtnl_link_ops_put() in\nrtnl_dump_ifinfo(), running \"ip link show type dummy\" alongside\n\"rmmod dummy\" on a KASAN kernel gives:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __srcu_read_unlock+0x57/0x70\n  Read of size 8 at addr ffffffffc02ff318 by task ip/147\n  Call Trace:\n   __srcu_read_unlock+0x57/0x70\n   rtnl_dump_ifinfo.cold+0x30/0x3b\n   rtnl_dumpit+0x7a/0x1b0\n   netlink_dump+0x486/0x11b0\n   __netlink_dump_start+0x661/0x910\n   rtnetlink_rcv_msg+0x611/0x9e0\n   netlink_rcv_skb+0x126/0x380\n   netlink_unicast+0x605/0x830\n   netlink_sendmsg+0x6d0/0xbb0\n   __sys_sendto+0x335/0x3a0\n\nCall synchronize_rcu() before synchronize_srcu(), as\nrtnl_af_unregister() already does. This should be enough because\nrtnl_link_ops_get() is the only RCU walker of link_ops, and it takes\nops->srcu before rcu_read_unlock(), so every reader that found ops is\ncovered by synchronize_srcu() once the RCU grace period ends. The extra\ngrace period only costs time at module unload.\n\nReaders and the writer were serialized by RTNL until link_ops got its\nown mutex, which is why the missing RCU wait did not matter before.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrtnetlink: wait for RCU readers in rtnl_link_unregister()\n\nrtnl_link_ops_get() finds ops on link_ops under rcu_read_lock() and only\nthen takes ops->srcu. rtnl_link_unregister() unlinks ops, then calls\nsynchronize_srcu() and cleanup_srcu_struct() without first waiting for\nRCU readers. A reader that found ops before list_del_rcu() and has not yet\ntaken ops->srcu is not waited for.\n\nSuch a reader then locks a cleaned-up srcu_struct and keeps using ops\nafter the module that owns it is gone. rtnl_newlink() and\nrtnl_dump_ifinfo() both look up ops without RTNL, the latter for any\nuser that dumps links filtered by kind.\n\nWith delays added between the lookup and srcu_read_lock() in\nrtnl_link_ops_get(), and before rtnl_link_ops_put() in\nrtnl_dump_ifinfo(), running \"ip link show type dummy\" alongside\n\"rmmod dummy\" on a KASAN kernel gives:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __srcu_read_unlock+0x57/0x70\n  Read of size 8 at addr ffffffffc02ff318 by task ip/147\n  Call Trace:\n   __srcu_read_unlock+0x57/0x70\n   rtnl_dump_ifinfo.cold+0x30/0x3b\n   rtnl_dumpit+0x7a/0x1b0\n   netlink_dump+0x486/0x11b0\n   __netlink_dump_start+0x661/0x910\n   rtnetlink_rcv_msg+0x611/0x9e0\n   netlink_rcv_skb+0x126/0x380\n   netlink_unicast+0x605/0x830\n   netlink_sendmsg+0x6d0/0xbb0\n   __sys_sendto+0x335/0x3a0\n\nCall synchronize_rcu() before synchronize_srcu(), as\nrtnl_af_unregister() already does. This should be enough because\nrtnl_link_ops_get() is the only RCU walker of link_ops, and it takes\nops->srcu before rcu_read_unlock(), so every reader that found ops is\ncovered by synchronize_srcu() once the RCU grace period ends. The extra\ngrace period only costs time at module unload.\n\nReaders and the writer were serialized by RTNL until link_ops got its\nown mutex, which is why the missing RCU wait did not matter before.","source":"cvelist"}],"published":"2026-11-19T14:23:38.430Z","modified":"2026-11-22T11:16:50.650Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6b57ff21a3109b1dba2d286ff415463e6fb1fca3","fixed":"9e3a6b707681a6291a410d1b7ce15840a9912a86","status":"affected"},{"type":"git","introduced":"6b57ff21a3109b1dba2d286ff415463e6fb1fca3","fixed":"ee636421740bc47e9d9e612ca7c9fa7dc5d17be1","status":"affected"},{"type":"git","introduced":"6b57ff21a3109b1dba2d286ff415463e6fb1fca3","fixed":"3b70edea393de445255da6c706eebb823117a955","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9e3a6b707681a6291a410d1b7ce15840a9912a86","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee636421740bc47e9d9e612ca7c9fa7dc5d17be1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b70edea393de445255da6c706eebb823117a955","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99401","url":"https://www.cve.org/CVERecord?id=CVE-2026-99401","licence":"CVE Terms of Use","modified":"2026-11-22T11:08:07.697Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99401","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99401","licence":"Public domain","modified":"2026-11-22T11:16:50.650Z"}],"updatedAt":"2026-11-25T22:59:52.057Z","epss":{"score":0.00163,"percentile":0.05734,"date":"2026-12-02T12:00:21.000Z"}}