CVE-2026-139160

Not scored yetLast modified Nov 30, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139161In the Linux kernel, the following vulnerability has been resolved: tls: keep TX and RX hardware offload on the same device After TX is ofCVE-2026-139162In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: handle partial allocation in attr_data_get_block_locked() WhCVE-2026-139163In the Linux kernel, the following vulnerability has been resolved: bpf: Keep stack arguments in arch_bpf_timed_may_goto() The JITs pass tCVE-2026-139164In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: fix 88E6171 statistics type The 88E6171 uses the CVE-2026-139165In the Linux kernel, the following vulnerability has been resolved: ksmbd: avoid races between named-pipe operations RPC IPC replies are mCVE-2026-139166In the Linux kernel, the following vulnerability has been resolved: devlink: region: fix snapshot id leak on kernel-allocated ids When DEVCVE-2026-139167In the Linux kernel, the following vulnerability has been resolved: net-sysfs: reject a one-entry RPS flow table store_rps_dev_flow_table_CVE-2026-1391687.5In the Linux kernel, the following vulnerability has been resolved: net: microchip: fdma: fix DCB corruption under sustained load __fdma_dCVE-2026-139169In the Linux kernel, the following vulnerability has been resolved: net: lan966x: release the in-flight slot of a stale TX skb lan966x_ptpCVE-2026-139176.5Insufficient validation of untrusted input in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker who coCVE-2026-139170In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit lan966x_fCVE-2026-139171In the Linux kernel, the following vulnerability has been resolved: sched_ext: Reject scx_bpf_sub_grant/revoke() in tracing programs A tra
CVE-2026-139160: Unscored | Vulnix