Skip to contentSkip to conversation

CVE-2026-72405: net: udp_tunnel: prevent double queueing in udp_tunnel_nic_device_sync

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-72405 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.9 with commit cc4e3835eff474aa274d6e1d18f69d9d296d3b76 and fixed in 6.12.97 with commit cee6688e5731c0591643521716d1a1a5c1a98bf8
	Issue introduced in 5.9 with commit cc4e3835eff474aa274d6e1d18f69d9d296d3b76 and fixed in 6.18.40 with commit 9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7
	Issue introduced in 5.9 with commit cc4e3835eff474aa274d6e1d18f69d9d296d3b76 and fixed in 7.1.5 with commit 54292b167466cdf42176b7b6f01da66c184deb12
	Issue introduced in 5.9 with commit cc4e3835eff474aa274d6e1d18f69d9d296d3b76 and fixed in 7.2-rc1 with commit ecf69d4b43370c587e48d4d70289dbdb7e039d4d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-72405

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/ipv4/udp_tunnel_nic.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/cee6688e5731c0591643521716d1a1a5c1a98bf8
	https://git.kernel.org/stable/c/9075efb9b2c1d9d7a8285c937b64aa93ca0c41b7
	https://git.kernel.org/stable/c/54292b167466cdf42176b7b6f01da66c184deb12
	https://git.kernel.org/stable/c/ecf69d4b43370c587e48d4d70289dbdb7e039d4d