CVE Professor
/
All CVEs
CVE-2026-139105

CVE-2026-139105 — Linux Kernel — NONE Vulnerability

NONE CVSS 0 ⚡ EPSS 0.4% NVD+CVE.org

In the Linux kernel, the following vulnerability has been resolved: netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts netdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER every second while it waits for the last references on a device to be dropped. By then netdev_run_todo() has already marked the device NETREG_UNREGISTERED and RTNL has been dropped at least once since the initial notification sent by unregister_netdevice_many_notify(). netdev_genl_netdevice_event() does not tell these rebroadcasts apart from the initial notification and sends a NETDEV_CMD_DEV_DEL_NTF multicast for each of them. At best this spams NETDEV_NLGRP_MGMT 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. default_device_exit_batch() 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 rtnl_lock_unregistering()")). So when a device is unregistered by something other than the cleanup_net() 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 netdev_wait_allrefs_any(), the remaining pernet exit handlers run and genl_pernet_exit() sets net->genl_sock to NULL. The next rebroadcast then crashes in genl_has_listeners(): BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388 Read of size 8 at addr 0000000000000578 by task syz.0.0/5325 Call Trace: <TASK> netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388 genl_has_listeners include/net/genetlink.h:644 [inline] netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93 netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 netdev_wait_allrefs_any net/core/dev.c:11690 [inline] netdev_run_todo+0x731/0x1060 net/core/dev.c:11808 rtnl_unlock net/core/rtnetlink.c:157 [inline] rtnl_dellink+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 NETDEV_UNREGISTER events delivered with reg_state == NETREG_UNREGISTERED. The notifications sent by unregister_netdevice_many_notify() and, for a device leaving a netns, by __dev_change_net_namespace() 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 ip6_route_dev_notify() 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 netdev_wait_allrefs_any() 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/[email protected]

In the Linux kernel, the following vulnerability has been resolved: netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts netdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER every second while it waits for the last references on a device to be dropped. By then netdev_run_todo() has already marked the device NETREG_UNREGISTERED and RTNL has been dropped at least once since the initial notification sent by unregister_netdevice_many_notify(). netdev_genl_netdevice_event() does not tell these rebroadcasts apart from the initial notification and sends a NETDEV_CMD_DEV_DEL_NTF multicast for each of them. At best this spams NETDEV_NLGRP_MGMT 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. default_device_exit_batch() 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 rtnl_lock_unregistering()")). So when a device is unregistered by something other than the cleanup_net() 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 netdev_wait_allrefs_any(), the remaining pernet exit handlers run and genl_pernet_exit() sets net->genl_sock to NULL. The next rebroadcast then crashes in genl_has_listeners(): BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388 Read of size 8 at addr 0000000000000578 by task syz.0.0/5325 Call Trace: <TASK> netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388 genl_has_listeners include/net/genetlink.h:644 [inline] netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93 netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 netdev_wait_allrefs_any net/core/dev.c:11690 [inline] netdev_run_todo+0x731/0x1060 net/core/dev.c:11808 rtnl_unlock net/core/rtnetlink.c:157 [inline] rtnl_dellink+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 NETDEV_UNREGISTER events delivered with reg_state == NETREG_UNREGISTERED. The notifications sent by unregister_netdevice_many_notify() and, for a device leaving a netns, by __dev_change_net_namespace() 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 ip6_route_dev_notify() 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 netdev_wait_allrefs_any() 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/[email protected]

EPSS — Exploit Prediction Scoring System
0.4%
30-day probability
In the 32. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a NULL Pointer Dereference (CWE-476) in the Linux kernel's netdev-genl (Generic Netlink) subsystem, specifically within the netdev_genl_netdevice_event() handler.

Technical Flaw Analysis:
The core issue lies in the interaction between device unregistration, reference counting, and network namespace (netns) teardown.

1. Rebroadcast Mechanism: When a network device is unregistered, netdev_wait_allrefs_any() re-sends NETDEV_UNREGISTER notifications every second until all references to the device are dropped. This is intended to "kick" in-kernel subsystems that are holding onto the device reference.
2. State Mismatch: By the time these rebroadcasts occur, the device is already marked as NETREG_UNREGISTERED, and the RTNL lock has been dropped.
3. Missing Filter: netdev_genl_netdevice_event() does not distinguish between the initial unregistration notification (sent under RTNL lock, safe) and the subsequent rebroadcasts (sent without RTNL lock, potentially unsafe). It forwards every NETDEV_UNREGISTER event as a NETDEV_CMD_DEV_DEL_NTF multicast message.
4. Race Condition with Netns Teardown:
* If a device (e.g., a veth pair) is unregistered from a netns while references are still held (e.g., by a driver deferring FIB processing), the device remains in the "waiting for refs" state.
* If the netns containing the device is destroyed (cleanup_net()), the per-netns exit handlers run.
* genl_pernet_exit() sets net->genl_sock to NULL.
If a rebroadcast occurs after genl_sock is set to NULL but before* the device references are finally dropped, netdev_genl_netdevice_event() calls genl_has_listeners().
* genl_has_listeners() attempts to dereference net->genl_sock to check for listeners, resulting in a NULL pointer dereference at netlink_has_listeners+0x3d.

CVSS Note: The provided CVSS score is 0/10 (NONE). This is technically inconsistent with a kernel NULL pointer dereference, which typically allows for local denial of service (DoS) or, in some configurations, privilege escalation. A score of 0 implies no impact. However, based on the KASAN report and the nature of the bug, this is a Local Denial of Service (DoS) vulnerability. The "NONE" score may be a data entry error in the source or reflects a specific context where the bug is considered non-exploitable for privilege escalation in the specific kernel configuration analyzed. For analysis purposes, we treat this as a High Severity Local DoS (CVSS 3.1: 5.5 - 7.0 depending on privileges required).

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Target Identification: The attacker must have local access to the system (e.g., via a compromised user account, container escape, or physical access).
  • Version Check: Identify the Linux kernel version. The vulnerability affects kernels where netdev_wait_allrefs_any() rebroadcasts are not filtered in netdev-genl. This was introduced/affected in recent kernels (post-2024/2025) where the rtnl_lock_unregistering() barrier was removed (commit 8a4fc54b07d7).
  • Capability Check: The attacker needs the ability to create network namespaces (CAP_SYS_ADMIN or equivalent in a user namespace) and create network devices (e.g., veth pairs).
  • 2. Exploitation

    The exploitation requires triggering a race condition between: 1. Unregistering a network device in a netns while a reference is held. 2. Destroying the netns while the device is still waiting for references to drop.

    Prerequisites:

  • A driver or subsystem that holds a reference to a network device for a significant time (seconds) after unregistration. The CVE mentions netdevsim deferring FIB processing as a trigger, but states "any driver may introduce such a delay."

  • Ability to create a veth pair, move one end to a new netns, and delete the other end.
  • Illustrative PoC Concept (C Language / System Calls):
    Note: This is a conceptual representation. Actual exploitation requires precise timing and a driver that holds references.

    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sys/socket.h>
    #include <sys/ioctl.h>
    #include <linux/if.h>
    #include <net/if.h>
    #include <string.h>
    #include <errno.h>
    
    // Pseudo-code for the race condition trigger
    // 1. Create a new netns
    // 2. Create a veth pair
    // 3. Move one end of the veth pair into the new netns
    // 4. Trigger a reference hold on the veth device (e.g., via a specific driver or ioctl that delays release)
    // 5. Delete the other end of the veth pair (triggers unregistration in the new netns)
    // 6. Immediately destroy the new netns (triggers genl_pernet_exit, setting genl_sock to NULL)
    // 7. The rebroadcast from netdev_wait_allrefs_any() occurs after genl_sock is NULL, causing the crash.
    
    int main() {
        // This is a high-level description. Actual implementation requires:
        // - Creating netns via unshare(CLONE_NEWNET)
        // - Creating veth via ioctl(SIOCSIFNAME) or netlink
        // - Moving veth to netns via netlink RTM_NEWLINK
        // - Deleting the peer veth
        // - Destroying the netns via unshare or rmdir /var/run/netns/<name>
        
        printf("Exploit requires precise timing and a driver that holds device references.\n");
        printf("See syzbot repro: https://gist.github.com/NamanGulati/2d1b49b8757f9a88b0bd6e55018c02ae\n");
        return 0;
    }

    Key Exploitation Steps:
    1. Create Netns: unshare(CLONE_NEWNET) or ip netns add victim_ns.
    2. Create Veth: Create a veth pair veth0 (in init ns) and veth1 (in victim_ns).
    3. Hold Reference: Ensure a reference to veth1 is held. This is the tricky part. The CVE mentions netdevsim deferring FIB processing. An attacker might use a similar mechanism or a custom kernel module (if they have root) to hold a reference. Alternatively, if the attacker has root, they can simply trigger the race with any driver that has a delay.
    4. Trigger Unregistration: Delete veth0 (the peer in init ns). This triggers unregistration of veth1 in victim_ns.
    5. Race: While veth1 is in netdev_wait_allrefs_any(), destroy victim_ns (ip netns del victim_ns).
    6. Crash: The next rebroadcast (within 1 second) will call genl_has_listeners() with net->genl_sock == NULL, causing a kernel panic.

    3. Post-exploitation

  • Denial of Service: The kernel panics, crashing the entire system. This is the primary impact.
  • Privilege Escalation: In some kernel configurations, a NULL pointer dereference can be exploited for privilege escalation if the attacker can map page 0 into their address space (e.g., via mmap with specific flags, though this is increasingly difficult on modern kernels with mmap_min_addr and other mitigations). However, the primary and most reliable impact is DoS.
  • 🌍 Real World Impact

  • Confidentiality: None (0.0). The crash does not leak data.
  • Integrity: None (0.0). The crash does not modify data.
  • Availability: High (0.7-1.0). The system crashes, leading to a complete loss of availability.
  • Practical Consequences:

  • Server Downtime: Any local user with the ability to create network namespaces and trigger the race condition can crash the server.

  • Container Escape/DoS: In containerized environments, if a container has CAP_SYS_ADMIN and can create netns, it may be able to crash the host kernel.

  • Multi-tenant Environments: In cloud or shared hosting environments, a compromised tenant could potentially crash the host, affecting other tenants.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade: Apply the kernel patch that filters out NETDEV_UNREGISTER rebroadcasts in netdev_genl_netdevice_event(). The fix ensures that only the initial unregistration notification (sent under RTNL lock) is forwarded to Generic Netlink listeners, while rebroadcasts (where reg_state == NETREG_UNREGISTERED) are ignored.
  • Kernel Version: This fix is likely included in recent stable kernel releases (6.3+). Check your distribution's security advisories for the specific patch.
  • 2. Workarounds

  • Restrict Netns Creation: If possible, restrict the ability of unprivileged users to create network namespaces. This can be done by:
  • * Disabling user namespaces (kernel.unprivileged_userns_clone=0 on some distros). * Using AppArmor or SELinux to prevent unprivileged users from creating netns.
  • Disable Generic Netlink Listeners: If not needed, disable Generic Netlink listeners for NETDEV_NLGRP_MGMT. This is not a standard configuration option and may break network management tools.
  • Driver-Specific Mitigations: If the issue is triggered by a specific driver (e.g., netdevsim), ensure that driver is updated to not hold references for extended periods.
  • 3. Detection

  • Kernel Logs: Look for KASAN reports or kernel panics with the following signature:
  • BUG: KASAN: null-ptr-deref in netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388
        Read of size 8 at addr 0000000000000578 by task syz.0.0/5325
        Call Trace:
         <TASK>
         netlink_has_listeners+0x3d/0x3f0 net/netlink/af_netlink.c:1388
         genl_has_listeners include/net/genetlink.h:644 [inline]
         netdev_genl_dev_notify+0x161/0x450 net/core/netdev-genl.c:93
         netdev_genl_netdevice_event+0x98/0x3c0 net/core/netdev-genl.c:1491
         notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85
         netdev_wait_allrefs_any net/core/dev.c:11690 [inline]
         netdev_run_todo+0x731/0x1060 net/core/dev.c:11808
         rtnl_unlock net/core/rtnetlink.c:157 [inline]
         rtnl_dellink+0x68f/0x810 net/core/rtnetlink.c:3707
  • System Logs: Monitor for unexpected kernel panics or reboots, especially in environments where unprivileged users can create network namespaces.
  • Network Traffic: No specific network traffic pattern is associated with this vulnerability, as it is a local kernel bug.
  • ⚠️ Urgency

    CVSS Score: 0/10 (NONE) - Note: This score is likely incorrect or reflects a specific context. Treat as High Severity Local DoS.*

  • CISA KEV: No

  • Exploit Complexity: High (requires precise timing and specific driver behavior).

  • Patching Priority: Medium-High. While not in CISA KEV and not trivially exploitable, the ability for a local user to crash the kernel is a significant security risk, especially in multi-tenant or containerized environments. Patch as soon as possible, especially if unprivileged users can create network namespaces.


[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Linux Linux"
CVSS Score
0 / 10 · CVSS NONE
Affected Products (2)
Linux Kernel (commit: 7af6433b10) Linux Kernel (6.3)
Related CVEs
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-118966
A missing authentication vulnerability in the SSH server of Nokia SR Linux allows an unauthenticated attacker
8.7
CVE-2026-145182
Mullvad gotatun 0.1.0 before 0.10.1 contains a denial of service vulnerability that allows unauthenticated rem
0.0
CVE-2026-132063
The 2C2P Redirect API for WooCommerce WordPress plugin through 7.0.3 does not stop processing a payment callba
0.0
CVE-2026-140849
Multiple malformed-packet handling vulnerabilities exist in a number of Nokia SR OS control-plane protocols (B
0.0
CVE-2026-141072
Rejected reason: Not a valid vulnerability.