{"api_version":"1","generated_at":"2026-11-30T15:13:36+00:00","cve":"CVE-2026-139105","urls":{"html":"https://cve.report/CVE-2026-139105","api":"https://cve.report/api/cve/CVE-2026-139105.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139105","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139105"},"summary":{"title":"netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdev-genl: ignore NETDEV_UNREGISTER rebroadcasts\n\nnetdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER every second while\nit waits for the last references on a device to be dropped. By then\nnetdev_run_todo() has already marked the device NETREG_UNREGISTERED and\nRTNL has been dropped at least once since the initial notification sent\nby unregister_netdevice_many_notify().\n\nnetdev_genl_netdevice_event() does not tell these rebroadcasts apart\nfrom the initial notification and sends a NETDEV_CMD_DEV_DEL_NTF\nmulticast for each of them. At best this spams NETDEV_NLGRP_MGMT\nlisteners with duplicate notifications; at worst the pernet state of\nthe netns the device belongs to is already gone and the handler\ndereferences a NULL pointer.\n\ndefault_device_exit_batch() only unregisters the devices still listed\nin the exiting netns; it does not wait for in-flight unregistrations of\ndevices that were already unlisted (the barrier doing that was removed\nby commit 8a4fc54b07d7 (\"net: get rid of rtnl_lock_unregistering()\")).\nSo when a device is unregistered by something other than the\ncleanup_net() of its own netns while references on it are still held,\ne.g. a veth whose peer in another netns gets deleted, and that netns\nexits while the device is stuck in netdev_wait_allrefs_any(), the\nremaining pernet exit handlers run and genl_pernet_exit() sets\nnet->genl_sock to NULL. The next rebroadcast then crashes in\ngenl_has_listeners():\n\n  BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n  Read of size 8 at addr 0000000000000578 by task syz.0.0/5325\n  Call Trace:\n   <TASK>\n   netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n   genl_has_listeners include/net/genetlink.h:644 [inline]\n   netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93\n   netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491\n   notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85\n   netdev_wait_allrefs_any net/core/dev.c:11690 [inline]\n   netdev_run_todo+0x731/0x1060 net/core/dev.c:11808\n   rtnl_unlock net/core/rtnetlink.c:157 [inline]\n   rtnl_dellink+0x68f/0x810 net/core/rtnetlink.c:3707\n\nsyzbot hit this by moving one end of a veth pair into a short-lived\nnetns while netdevsim's deferred FIB event processing still held a\nreference on it, and then deleting the other end (repro [1]). While the\nsource of this bug is netdevsim deferring FIB processing for and holding\nonto the device reference for O(seconds) which is being fixed\nseparately [2], any driver may introduce such a delay and trigger the\nnull-ptr-deref.\n\nSkip the rebroadcasts, which are the only NETDEV_UNREGISTER events\ndelivered with reg_state == NETREG_UNREGISTERED. The notifications sent\nby unregister_netdevice_many_notify() and, for a device leaving a netns,\nby __dev_change_net_namespace() are issued under RTNL in the same\ncritical section that unlists the device, before its netns can be torn\ndown, and keep being handled. This mirrors what ip6_route_dev_notify()\nalready does to cope with the rebroadcasts.\n\nThis change should not break the UAPI spec as it defines dev-del-ntf as\na \"Notification about device disappearing.\" which is a single event. The\nrebroadcast in netdev_wait_allrefs_any() exists to re-kick in-kernel\nsubsystems holding references; netdev-genl happens to be on the notifier\nchain and forwards it.\n\n[1] https://gist.github.com/NamanGulati/2d1b49b8757f9a88b0bd6e55018c02ae\n[2] https://lore.kernel.org/r/20261023191517.607834-1-kuniyu@google.com","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:19","updated_at":"2026-11-30 14:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/85780eacecdbe095c1ba4f3659d2cdfcc69d5ca9","name":"https://git.kernel.org/stable/c/85780eacecdbe095c1ba4f3659d2cdfcc69d5ca9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fd0909e963ed8f36967bd072ed484be7babe46de","name":"https://git.kernel.org/stable/c/fd0909e963ed8f36967bd072ed484be7babe46de","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/adf47f2babc5f6e6536640f5fd20c11c51058399","name":"https://git.kernel.org/stable/c/adf47f2babc5f6e6536640f5fd20c11c51058399","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7af6433b10582713f762a3c04cb00355805033f7","name":"https://git.kernel.org/stable/c/7af6433b10582713f762a3c04cb00355805033f7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139105","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139105","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d3d854fd6a1d97157f790604e07f6386e8df8fe4 7af6433b10582713f762a3c04cb00355805033f7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d3d854fd6a1d97157f790604e07f6386e8df8fe4 adf47f2babc5f6e6536640f5fd20c11c51058399 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d3d854fd6a1d97157f790604e07f6386e8df8fe4 85780eacecdbe095c1ba4f3659d2cdfcc69d5ca9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d3d854fd6a1d97157f790604e07f6386e8df8fe4 fd0909e963ed8f36967bd072ed484be7babe46de git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/netdev-genl.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7af6433b10582713f762a3c04cb00355805033f7","status":"affected","version":"d3d854fd6a1d97157f790604e07f6386e8df8fe4","versionType":"git"},{"lessThan":"adf47f2babc5f6e6536640f5fd20c11c51058399","status":"affected","version":"d3d854fd6a1d97157f790604e07f6386e8df8fe4","versionType":"git"},{"lessThan":"85780eacecdbe095c1ba4f3659d2cdfcc69d5ca9","status":"affected","version":"d3d854fd6a1d97157f790604e07f6386e8df8fe4","versionType":"git"},{"lessThan":"fd0909e963ed8f36967bd072ed484be7babe46de","status":"affected","version":"d3d854fd6a1d97157f790604e07f6386e8df8fe4","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/netdev-genl.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.3"},{"lessThan":"6.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdev-genl: ignore NETDEV_UNREGISTER rebroadcasts\n\nnetdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER every second while\nit waits for the last references on a device to be dropped. By then\nnetdev_run_todo() has already marked the device NETREG_UNREGISTERED and\nRTNL has been dropped at least once since the initial notification sent\nby unregister_netdevice_many_notify().\n\nnetdev_genl_netdevice_event() does not tell these rebroadcasts apart\nfrom the initial notification and sends a NETDEV_CMD_DEV_DEL_NTF\nmulticast for each of them. At best this spams NETDEV_NLGRP_MGMT\nlisteners with duplicate notifications; at worst the pernet state of\nthe netns the device belongs to is already gone and the handler\ndereferences a NULL pointer.\n\ndefault_device_exit_batch() only unregisters the devices still listed\nin the exiting netns; it does not wait for in-flight unregistrations of\ndevices that were already unlisted (the barrier doing that was removed\nby commit 8a4fc54b07d7 (\"net: get rid of rtnl_lock_unregistering()\")).\nSo when a device is unregistered by something other than the\ncleanup_net() of its own netns while references on it are still held,\ne.g. a veth whose peer in another netns gets deleted, and that netns\nexits while the device is stuck in netdev_wait_allrefs_any(), the\nremaining pernet exit handlers run and genl_pernet_exit() sets\nnet->genl_sock to NULL. The next rebroadcast then crashes in\ngenl_has_listeners():\n\n  BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n  Read of size 8 at addr 0000000000000578 by task syz.0.0/5325\n  Call Trace:\n   <TASK>\n   netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n   genl_has_listeners include/net/genetlink.h:644 [inline]\n   netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93\n   netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491\n   notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85\n   netdev_wait_allrefs_any net/core/dev.c:11690 [inline]\n   netdev_run_todo+0x731/0x1060 net/core/dev.c:11808\n   rtnl_unlock net/core/rtnetlink.c:157 [inline]\n   rtnl_dellink+0x68f/0x810 net/core/rtnetlink.c:3707\n\nsyzbot hit this by moving one end of a veth pair into a short-lived\nnetns while netdevsim's deferred FIB event processing still held a\nreference on it, and then deleting the other end (repro [1]). While the\nsource of this bug is netdevsim deferring FIB processing for and holding\nonto the device reference for O(seconds) which is being fixed\nseparately [2], any driver may introduce such a delay and trigger the\nnull-ptr-deref.\n\nSkip the rebroadcasts, which are the only NETDEV_UNREGISTER events\ndelivered with reg_state == NETREG_UNREGISTERED. The notifications sent\nby unregister_netdevice_many_notify() and, for a device leaving a netns,\nby __dev_change_net_namespace() are issued under RTNL in the same\ncritical section that unlists the device, before its netns can be torn\ndown, and keep being handled. This mirrors what ip6_route_dev_notify()\nalready does to cope with the rebroadcasts.\n\nThis change should not break the UAPI spec as it defines dev-del-ntf as\na \"Notification about device disappearing.\" which is a single event. The\nrebroadcast in netdev_wait_allrefs_any() exists to re-kick in-kernel\nsubsystems holding references; netdev-genl happens to be on the notifier\nchain and forwards it.\n\n[1] https://gist.github.com/NamanGulati/2d1b49b8757f9a88b0bd6e55018c02ae\n[2] https://lore.kernel.org/r/20261023191517.607834-1-kuniyu@google.com"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:37.530Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7af6433b10582713f762a3c04cb00355805033f7"},{"url":"https://git.kernel.org/stable/c/adf47f2babc5f6e6536640f5fd20c11c51058399"},{"url":"https://git.kernel.org/stable/c/85780eacecdbe095c1ba4f3659d2cdfcc69d5ca9"},{"url":"https://git.kernel.org/stable/c/fd0909e963ed8f36967bd072ed484be7babe46de"}],"title":"netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139105","datePublished":"2026-11-30T13:31:37.530Z","dateReserved":"2026-11-30T13:22:15.914Z","dateUpdated":"2026-11-30T13:31:37.530Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:19","lastModifiedDate":"2026-11-30 14:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139105","Ordinal":"1","Title":"netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts","CVE":"CVE-2026-139105","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139105","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdev-genl: ignore NETDEV_UNREGISTER rebroadcasts\n\nnetdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER every second while\nit waits for the last references on a device to be dropped. By then\nnetdev_run_todo() has already marked the device NETREG_UNREGISTERED and\nRTNL has been dropped at least once since the initial notification sent\nby unregister_netdevice_many_notify().\n\nnetdev_genl_netdevice_event() does not tell these rebroadcasts apart\nfrom the initial notification and sends a NETDEV_CMD_DEV_DEL_NTF\nmulticast for each of them. At best this spams NETDEV_NLGRP_MGMT\nlisteners with duplicate notifications; at worst the pernet state of\nthe netns the device belongs to is already gone and the handler\ndereferences a NULL pointer.\n\ndefault_device_exit_batch() only unregisters the devices still listed\nin the exiting netns; it does not wait for in-flight unregistrations of\ndevices that were already unlisted (the barrier doing that was removed\nby commit 8a4fc54b07d7 (\"net: get rid of rtnl_lock_unregistering()\")).\nSo when a device is unregistered by something other than the\ncleanup_net() of its own netns while references on it are still held,\ne.g. a veth whose peer in another netns gets deleted, and that netns\nexits while the device is stuck in netdev_wait_allrefs_any(), the\nremaining pernet exit handlers run and genl_pernet_exit() sets\nnet->genl_sock to NULL. The next rebroadcast then crashes in\ngenl_has_listeners():\n\n  BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n  Read of size 8 at addr 0000000000000578 by task syz.0.0/5325\n  Call Trace:\n   <TASK>\n   netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388\n   genl_has_listeners include/net/genetlink.h:644 [inline]\n   netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93\n   netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491\n   notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85\n   netdev_wait_allrefs_any net/core/dev.c:11690 [inline]\n   netdev_run_todo+0x731/0x1060 net/core/dev.c:11808\n   rtnl_unlock net/core/rtnetlink.c:157 [inline]\n   rtnl_dellink+0x68f/0x810 net/core/rtnetlink.c:3707\n\nsyzbot hit this by moving one end of a veth pair into a short-lived\nnetns while netdevsim's deferred FIB event processing still held a\nreference on it, and then deleting the other end (repro [1]). While the\nsource of this bug is netdevsim deferring FIB processing for and holding\nonto the device reference for O(seconds) which is being fixed\nseparately [2], any driver may introduce such a delay and trigger the\nnull-ptr-deref.\n\nSkip the rebroadcasts, which are the only NETDEV_UNREGISTER events\ndelivered with reg_state == NETREG_UNREGISTERED. The notifications sent\nby unregister_netdevice_many_notify() and, for a device leaving a netns,\nby __dev_change_net_namespace() are issued under RTNL in the same\ncritical section that unlists the device, before its netns can be torn\ndown, and keep being handled. This mirrors what ip6_route_dev_notify()\nalready does to cope with the rebroadcasts.\n\nThis change should not break the UAPI spec as it defines dev-del-ntf as\na \"Notification about device disappearing.\" which is a single event. The\nrebroadcast in netdev_wait_allrefs_any() exists to re-kick in-kernel\nsubsystems holding references; netdev-genl happens to be on the notifier\nchain and forwards it.\n\n[1] https://gist.github.com/NamanGulati/2d1b49b8757f9a88b0bd6e55018c02ae\n[2] https://lore.kernel.org/r/20261023191517.607834-1-kuniyu@google.com","Type":"Description","Title":"netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts"}]}}}