{"id":"CVE-2026-139242","aliases":["CVE-2026-139242"],"related":[],"kind":"vulnerability","state":"published","title":"ipv6: Hold RCU when emitting route hardware flags notification","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Hold RCU when emitting route hardware flags notification\n\nfib6_info_hw_flags_set() is called by drivers from process context\nwithout RTNL or RCU. When the route uses a nexthop object,\nrt6_nlmsg_size() and rt6_fill_node() access the nexthop's RCU protected\nnexthop info and group pointers via rcu_dereference_rtnl(), resulting in\nsuspicious RCU usage splats [1].\n\nFix by holding RCU while sizing and filling the notification, like\nfib_alias_hw_flags_set() already does. Switch to GFP_ATOMIC for the skb\nallocation accordingly.\n\nReproducer:\n\n # echo \"10 0\" > /sys/bus/netdevsim/new_device\n # sysctl -wq net.ipv6.fib_notify_on_flag_change=1\n # sysctl -wq net.ipv4.nexthop_compat_mode=1\n # ip -6 nexthop add id 1 blackhole\n # ip -6 route add 2001:db8:1::1/128 nhid 1\n\n[1]\nWARNING: suspicious RCU usage\n7.3.0-rc7-virtme-g191aa41548b2 #38 Not tainted\nnet/ipv4/nexthop.c:1539 suspicious rcu_dereference_check() usage!\n[...]\nWorkqueue: events nsim_fib_event_work\nCall Trace:\n <TASK>\n dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120)\n lockdep_rcu_suspicious.cold (kernel/locking/lockdep.c:6972)\n nexthop_for_each_fib6_nh (net/ipv4/nexthop.c:1539 (discriminator 16))\n rt6_nlmsg_size (net/ipv6/route.c:5728)\n fib6_info_hw_flags_set (net/ipv6/route.c:6503)\n nsim_fib6_rt_add (drivers/net/netdevsim/fib.c:671 drivers/net/netdevsim/fib.c:694)\n nsim_fib6_rt_insert (drivers/net/netdevsim/fib.c:759)\n nsim_fib_event_work (drivers/net/netdevsim/fib.c:856 drivers/net/netdevsim/fib.c:889 drivers/net/netdevsim/fib.c:1493)\n process_one_work (kernel/workqueue.c:3396)\n worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n kthread (kernel/kthread.c:436)\n ret_from_fork (arch/x86/kernel/process.c:158)\n ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n </TASK>","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Hold RCU when emitting route hardware flags notification\n\nfib6_info_hw_flags_set() is called by drivers from process context\nwithout RTNL or RCU. When the route uses a nexthop object,\nrt6_nlmsg_size() and rt6_fill_node() access the nexthop's RCU protected\nnexthop info and group pointers via rcu_dereference_rtnl(), resulting in\nsuspicious RCU usage splats [1].\n\nFix by holding RCU while sizing and filling the notification, like\nfib_alias_hw_flags_set() already does. Switch to GFP_ATOMIC for the skb\nallocation accordingly.\n\nReproducer:\n\n # echo \"10 0\" > /sys/bus/netdevsim/new_device\n # sysctl -wq net.ipv6.fib_notify_on_flag_change=1\n # sysctl -wq net.ipv4.nexthop_compat_mode=1\n # ip -6 nexthop add id 1 blackhole\n # ip -6 route add 2001:db8:1::1/128 nhid 1\n\n[1]\nWARNING: suspicious RCU usage\n7.3.0-rc7-virtme-g191aa41548b2 #38 Not tainted\nnet/ipv4/nexthop.c:1539 suspicious rcu_dereference_check() usage!\n[...]\nWorkqueue: events nsim_fib_event_work\nCall Trace:\n <TASK>\n dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120)\n lockdep_rcu_suspicious.cold (kernel/locking/lockdep.c:6972)\n nexthop_for_each_fib6_nh (net/ipv4/nexthop.c:1539 (discriminator 16))\n rt6_nlmsg_size (net/ipv6/route.c:5728)\n fib6_info_hw_flags_set (net/ipv6/route.c:6503)\n nsim_fib6_rt_add (drivers/net/netdevsim/fib.c:671 drivers/net/netdevsim/fib.c:694)\n nsim_fib6_rt_insert (drivers/net/netdevsim/fib.c:759)\n nsim_fib_event_work (drivers/net/netdevsim/fib.c:856 drivers/net/netdevsim/fib.c:889 drivers/net/netdevsim/fib.c:1493)\n process_one_work (kernel/workqueue.c:3396)\n worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n kthread (kernel/kthread.c:436)\n ret_from_fork (arch/x86/kernel/process.c:158)\n ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n </TASK>","source":"cvelist"}],"published":"2026-11-30T13:32:56.201Z","modified":"2026-11-30T14:18:46.390Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"811c17c74cd298f1adcadb1b0ce5b30c1365d102","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"6cc6b31b35c06216a9af23d67618f96b491fbd7b","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"9aaebc798b138b0505d4498e6eb005473e759c52","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"ef3d991eacc764e0d07ae1cfad119f5903ac8662","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"ec0d1152b732e148f1ad17ff22eb18bb4cc9cc16","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"2c7d4e38337de373e159a3c0adfe0d4810c30c9f","status":"affected"},{"type":"git","introduced":"907eea486888cfe118c19759bbc4b8fca2e004df","fixed":"7c9cb1edaf8fd8e1af25e39741e603500986ef66","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","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/811c17c74cd298f1adcadb1b0ce5b30c1365d102","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6cc6b31b35c06216a9af23d67618f96b491fbd7b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9aaebc798b138b0505d4498e6eb005473e759c52","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef3d991eacc764e0d07ae1cfad119f5903ac8662","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec0d1152b732e148f1ad17ff22eb18bb4cc9cc16","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c7d4e38337de373e159a3c0adfe0d4810c30c9f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c9cb1edaf8fd8e1af25e39741e603500986ef66","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139242","url":"https://www.cve.org/CVERecord?id=CVE-2026-139242","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:56.201Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139242","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139242","licence":"Public domain","modified":"2026-11-30T14:18:46.390Z"}],"updatedAt":"2026-11-30T14:32:56.524Z","epss":{"score":0.00206,"percentile":0.11281,"date":"2026-12-01T12:00:22.000Z"}}