GHSA-XHP3-4H7C-4X29

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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

nfp: flower: fix use-after-free in neighbour update work

The netevent notifier handles neighbour updates and redirects by queuing nfp_tun_neigh_update() on system_highpri_wq. Each work item holds a reference to the neighbour, but only stores a pointer to the flower app.

During device removal, nfp_tunnel_config_stop() unregisters the notifier. This waits for notifier callbacks to return, but does not wait for the work they queued. The teardown then frees app->priv and app without waiting for these work items. Flushing cmsg_work in nfp_flower_clean() does not cover the neighbour update work.

A pending work item can therefore run after the app has been freed. Its call to nfp_flower_get_port_id_from_netdev() can then access freed memory while checking whether the neighbour's device can be offloaded. Even notifications for unrelated devices can reach this check. The same problem affects shutdown and probe error paths that tear down the app after the netevent notifier has been registered.

One possible interleaving is shown below. The neighbour belongs to another network device that remains registered.

CPU0 (remove) CPU1 (notifier / kworker) nfp_tun_neigh_event_handler() queue_work(system_highpri_wq, ...) return /* Work has not run yet. / nfp_tunnel_config_stop() unregister_netevent_notifier() / Notifier callbacks have finished, but work may be pending. / nfp_flower_clean() vfree(app->priv) app->priv = NULL nfp_app_free() kfree(app) nfp_tun_neigh_update() app = update_work->app nfp_flower_get_port_id_from_netdev() app->priv / use-after-free */

The work items are allocated per event and free themselves, so they cannot be cancelled individually, and flushing system_highpri_wq is not allowed. Use a dedicated workqueue for neighbour updates instead. In nfp_tunnel_config_stop(), unregister the notifier and destroy the workqueue before cleaning up the tunnel state. This prevents new work from being queued and waits for pending and running work to finish while the app and its resources are still valid.

Found by code inspection.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139160"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:34Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfp: flower: fix use-after-free in neighbour update work\n\nThe netevent notifier handles neighbour updates and redirects by\nqueuing nfp_tun_neigh_update() on system_highpri_wq. Each work item\nholds a reference to the neighbour, but only stores a pointer to the\nflower app.\n\nDuring device removal, nfp_tunnel_config_stop() unregisters the\nnotifier. This waits for notifier callbacks to return, but does not\nwait for the work they queued. The teardown then frees app-\u003epriv and\napp without waiting for these work items. Flushing cmsg_work in\nnfp_flower_clean() does not cover the neighbour update work.\n\nA pending work item can therefore run after the app has been freed.\nIts call to nfp_flower_get_port_id_from_netdev() can then access freed\nmemory while checking whether the neighbour\u0027s device can be offloaded.\nEven notifications for unrelated devices can reach this check. The\nsame problem affects shutdown and probe error paths that tear down the\napp after the netevent notifier has been registered.\n\nOne possible interleaving is shown below. The neighbour belongs to\nanother network device that remains registered.\n\n  CPU0 (remove)                   CPU1 (notifier / kworker)\n                                  nfp_tun_neigh_event_handler()\n                                    queue_work(system_highpri_wq, ...)\n                                    return\n                                  /* Work has not run yet. */\n  nfp_tunnel_config_stop()\n    unregister_netevent_notifier()\n    /* Notifier callbacks have finished, but work may be pending. */\n  nfp_flower_clean()\n    vfree(app-\u003epriv)\n    app-\u003epriv = NULL\n  nfp_app_free()\n    kfree(app)\n                                  nfp_tun_neigh_update()\n                                    app = update_work-\u003eapp\n                                    nfp_flower_get_port_id_from_netdev()\n                                      app-\u003epriv  /* use-after-free */\n\nThe work items are allocated per event and free themselves, so they\ncannot be cancelled individually, and flushing system_highpri_wq is\nnot allowed. Use a dedicated workqueue for neighbour updates instead.\nIn nfp_tunnel_config_stop(), unregister the notifier and destroy the\nworkqueue before cleaning up the tunnel state. This prevents new work\nfrom being queued and waits for pending and running work to finish\nwhile the app and its resources are still valid.\n\nFound by code inspection.",
  "id": "GHSA-xhp3-4h7c-4x29",
  "modified": "2026-11-30T15:32:19Z",
  "published": "2026-11-30T15:32:19Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139160"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/083aaafd453c3fb14411519d6ada9a8917573fdb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/67a90084ce578da61a5516add95995bb8c5c6098"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e98aa58eba91af2d14c7f5f1780f8efe1070be4f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f72e19392e6a1a29bc385396ed24fdef08bff25e"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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

JSON
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.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    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.