CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's UDP tunneling implementation, specifically in the `udp_tunnel_nic_device_sync` function, where a use-after-free condition can occur due to improper handling of concurrent device operations. This flaw allows for potential exploitation that could lead to system instability or unauthorized access, particularly in environments relying on UDP tunneling. Organizations using Linux systems with UDP tunneling capabilities should prioritize applying the patch to mitigate the risk of exploitation.
Original NVD Description
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.