Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
net: udp_tunnel: prevent double queueing in udp_tunnel_nic_device_sync

In the Linux kernel, the following vulnerability has been resolved: net: udp_tunnel: prevent double queueing in udp_tunnel_nic_device_sync Yue Sun reported a use-after-free and debugobjects warning in udp_tunnel_nic_device_sync_work() during concurrent device operations. The workqueue core clears the internal pending bit before invoking the worker. At that point, a concurrent thread can queue the work again. When the already running worker eventually clears the work_pending flag to 0, it mistakenly clears the flag for the newly queued instance. udp_tunnel_nic_unregister() then observes work_pending as 0 and frees the structure while the second work item is still active in the queue, leading to UAF. Fix this by returning early in udp_tunnel_nic_device_sync() if work_pending is already set, preventing redundant work queueing.

Affected products

Linux
  • ==5.9
  • <9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7
  • =<*
  • <ecf69d4b43370c587e48d4d70289dbdb7e039d4d
  • <cee6688e5731c0591643521716d1a1a5c1a98bf8
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • <54292b167466cdf42176b7b6f01da66c184deb12
  • <5.9