GHSA-XX2W-8Q4Q-54P9
Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31In the Linux kernel, the following vulnerability has been resolved:
net: wait for in-flight device unregistrations before netns dismantle
A device can be unregistered by a context other than the cleanup_net() of its own netns, for instance a veth whose peer in another netns is deleted. If references on it are still held, it stays in netdev_wait_allrefs_any(), which rebroadcasts NETDEV_UNREGISTER every second.
Meanwhile its netns can be dismantled: default_device_exit_batch() only takes care of devices still listed in the netns, then pernet exit handlers free their state, and finally struct net is freed while the device still points to it.
The rebroadcasts then run notifiers against torn down pernet state, or freed memory. Three instances were reported so far:
- netdev_genl_netdevice_event(): net->genl_sock is NULL [1]
- nh_netdev_event(): net->nexthop.devhash is NULL [2]
- nf_tables netdevice notifiers: use-after-free of the nftables pernet storage [3]
but any notifier using dev_net(dev) is affected, as is netdev_wait_allrefs_any() itself (__rtnl_net_lock(dev_net(dev)) with CONFIG_DEBUG_NET_SMALL_RTNL=y).
This was prevented by rtnl_lock_unregistering() until I removed it in commit 8a4fc54b07d7 ("net: get rid of rtnl_lock_unregistering()"), considering only the loopback dependency, and missing the notifiers one.
Restore a per-netns counter of devices sitting in netdev_run_todo(), and make default_device_exit_batch() wait for it to reach zero, after it has unregistered all devices of the dying netns(es). At this point no new unregistration can be started for these netns.
Unlike the old barrier, this only waits for devices of the netns being dismantled and runs after their own devices are gone.
Tested on a KASAN kernel with a debug-only hack holding a reference on a veth device for 5 seconds after its unregistration: a nexthop on the veth in netns X, delete its peer from init_net, then delete X. Without this patch, the nexthop_flush_dev() null-ptr-deref from [2] triggers. With it, no splat; netns churn and dismantle of a netns whose own device is held still work.
[1] https://lore.kernel.org/netdev/6adf9f64.6200f071.51519.0ed1.GAE@google.com/ [2] https://lore.kernel.org/netdev/20261105114707.3030737-1-bsdhenrymartin@gmail.com/ [3] https://lore.kernel.org/netdev/20261105114817.3033625-1-bsdhenrymartin@gmail.com/
{
"affected": [],
"aliases": [
"CVE-2026-143128"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T10:17:45Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: wait for in-flight device unregistrations before netns dismantle\n\nA device can be unregistered by a context other than the cleanup_net()\nof its own netns, for instance a veth whose peer in another netns is\ndeleted. If references on it are still held, it stays in\nnetdev_wait_allrefs_any(), which rebroadcasts NETDEV_UNREGISTER every\nsecond.\n\nMeanwhile its netns can be dismantled: default_device_exit_batch()\nonly takes care of devices still listed in the netns, then pernet exit\nhandlers free their state, and finally struct net is freed while the\ndevice still points to it.\n\nThe rebroadcasts then run notifiers against torn down pernet state, or\nfreed memory. Three instances were reported so far:\n\n - netdev_genl_netdevice_event(): net-\u003egenl_sock is NULL [1]\n - nh_netdev_event(): net-\u003enexthop.devhash is NULL [2]\n - nf_tables netdevice notifiers: use-after-free of the nftables\n pernet storage [3]\n\nbut any notifier using dev_net(dev) is affected, as is\nnetdev_wait_allrefs_any() itself (__rtnl_net_lock(dev_net(dev)) with\nCONFIG_DEBUG_NET_SMALL_RTNL=y).\n\nThis was prevented by rtnl_lock_unregistering() until I removed it\nin commit 8a4fc54b07d7 (\"net: get rid of rtnl_lock_unregistering()\"),\nconsidering only the loopback dependency, and missing the notifiers one.\n\nRestore a per-netns counter of devices sitting in netdev_run_todo(),\nand make default_device_exit_batch() wait for it to reach zero, after\nit has unregistered all devices of the dying netns(es). At this point\nno new unregistration can be started for these netns.\n\nUnlike the old barrier, this only waits for devices of the netns being\ndismantled and runs after their own devices are gone.\n\nTested on a KASAN kernel with a debug-only hack holding a reference\non a veth device for 5 seconds after its unregistration: a nexthop\non the veth in netns X, delete its peer from init_net, then delete X.\nWithout this patch, the nexthop_flush_dev() null-ptr-deref from [2]\ntriggers. With it, no splat; netns churn and dismantle of a netns\nwhose own device is held still work.\n\n[1] https://lore.kernel.org/netdev/6adf9f64.6200f071.51519.0ed1.GAE@google.com/\n[2] https://lore.kernel.org/netdev/20261105114707.3030737-1-bsdhenrymartin@gmail.com/\n[3] https://lore.kernel.org/netdev/20261105114817.3033625-1-bsdhenrymartin@gmail.com/",
"id": "GHSA-xx2w-8q4q-54p9",
"modified": "2026-12-03T12:31:05Z",
"published": "2026-12-03T12:31:05Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143128"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/a9535834de431aa37bb7fdc436ec570562226da5"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c164a431a646983275d0076ff5b0e4c326fbc10b"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.