CVE-2026-139105: netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netdev-genl: ignore NETDEVUNREGISTER rebroadcasts

netdevwaitallrefsany() re-sends NETDEVUNREGISTER every second while it waits for the last references on a device to be dropped. By then netdevruntodo() has already marked the device NETREGUNREGISTERED and RTNL has been dropped at least once since the initial notification sent by unregisternetdevicemanynotify().

netdevgenlnetdeviceevent() does not tell these rebroadcasts apart from the initial notification and sends a NETDEVCMDDEVDELNTF multicast for each of them. At best this spams NETDEVNLGRPMGMT listeners with duplicate notifications; at worst the pernet state of the netns the device belongs to is already gone and the handler dereferences a NULL pointer.

defaultdeviceexitbatch() only unregisters the devices still listed in the exiting netns; it does not wait for in-flight unregistrations of devices that were already unlisted (the barrier doing that was removed by commit 8a4fc54b07d7 ("net: get rid of rtnllockunregistering()")). So when a device is unregistered by something other than the cleanupnet() of its own netns while references on it are still held, e.g. a veth whose peer in another netns gets deleted, and that netns exits while the device is stuck in netdevwaitallrefsany(), the remaining pernet exit handlers run and genlpernetexit() sets net->genlsock to NULL. The next rebroadcast then crashes in genlhaslisteners():

BUG: KASAN: null-ptr-deref in netlinkhaslisteners+0x3d/0x3f0 net/netlink/afnetlink.c:1388 Read of size 8 at addr 0000000000000578 by task syz.0.0/5325 Call Trace: <TASK> netlinkhaslisteners+0x3d/0x3f0 net/netlink/afnetlink.c:1388 genlhaslisteners include/net/genetlink.h:644 [inline] netdevgenldevnotify+0x161/0x450 net/core/netdev-genl.c:93 netdevgenlnetdeviceevent+0x98/0x3c0 net/core/netdev-genl.c:1491 notifiercallchain+0x1a5/0x3d0 kernel/notifier.c:85 netdevwaitallrefsany net/core/dev.c:11690 [inline] netdevruntodo+0x731/0x1060 net/core/dev.c:11808 rtnlunlock net/core/rtnetlink.c:157 [inline] rtnldellink+0x68f/0x810 net/core/rtnetlink.c:3707

syzbot hit this by moving one end of a veth pair into a short-lived netns while netdevsim's deferred FIB event processing still held a reference on it, and then deleting the other end (repro [1]). While the source of this bug is netdevsim deferring FIB processing for and holding onto the device reference for O(seconds) which is being fixed separately [2], any driver may introduce such a delay and trigger the null-ptr-deref.

Skip the rebroadcasts, which are the only NETDEVUNREGISTER events delivered with regstate == NETREGUNREGISTERED. The notifications sent by unregisternetdevicemanynotify() and, for a device leaving a netns, by devchangenetnamespace() are issued under RTNL in the same critical section that unlists the device, before its netns can be torn down, and keep being handled. This mirrors what ip6routedevnotify() already does to cope with the rebroadcasts.

This change should not break the UAPI spec as it defines dev-del-ntf as a "Notification about device disappearing." which is a single event. The rebroadcast in netdevwaitallrefsany() exists to re-kick in-kernel subsystems holding references; netdev-genl happens to be on the notifier chain and forwards it.

[1] https://gist.github.com/NamanGulati/2d1b49b8757f9a88b0bd6e55018c02ae [2] https://lore.kernel.org/r/20261023191517.607834-1-kuniyu@google.com

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.3.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    Update netdev-genl to ignore NETDEV_UNREGISTER rebroadcasts.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
Description
Data Sourced
via OSV·01:31 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the NULL-pointer dereference?

A device must be unregistered by something other than cleanup_net() for its own network namespace while references to that device remain. During the resulting delayed unregistration, the namespace's pernet state may be removed before repeated NETDEV_UNREGISTER rebroadcasts are handled.

2

Who is exposed to the duplicate notifications?

Listeners subscribed to the NETDEV_NLGRP_MGMT multicast group can receive repeated NETDEV_CMD_DEV_DEL_NTF messages while netdev_wait_allrefs_any() waits for device references to be dropped. This can cause notification spam even when the NULL-pointer condition is not reached.

3

How can I identify the affected behavior?

Look for repeated NETDEV_CMD_DEV_DEL_NTF multicast notifications for the same device during unregistration. The severe failure path involves a delayed device unregistration overlapping teardown of the device's network namespace.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203