Linux
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < d59d3b19e1cd1a01a6db59705327387a30aed153
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < f49ed02fd8c98da823fdd7b00d64a8cc1d1883ac
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < cee6688e5731c0591643521716d1a1a5c1a98bf8
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < 9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < 54292b167466cdf42176b7b6f01da66c184deb12
- >= cc4e3835eff474aa274d6e1d18f69d9d296d3b76, < ecf69d4b43370c587e48d4d70289dbdb7e039d4d
Fixed in d59d3b19e1cd1a01a6db59705327387a30aed153, f49ed02fd8c98da823fdd7b00d64a8cc1d1883ac, cee6688e5731c0591643521716d1a1a5c1a98bf8, 9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7, 54292b167466cdf42176b7b6f01da66c184deb12, ecf69d4b43370c587e48d4d70289dbdb7e039d4d
- 5.9
Fixed in 0, 6.1.191, 6.6.160, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to d59d3b19e1cd1a01a6db59705327387a30aed153 or f49ed02fd8c98da823fdd7b00d64a8cc1d1883ac or cee6688e5731c0591643521716d1a1a5c1a98bf8 or 9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7 or 54292b167466cdf42176b7b6f01da66c184deb12 or ecf69d4b43370c587e48d4d70289dbdb7e039d4d or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.