CVE-2026-74543

Source
https://cve.org/CVERecord?id=CVE-2026-74543
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74543.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74543
Downstream
Published
2026-08-15T12:27:53.336Z
Modified
2026-08-18T03:31:07.865341875Z
Summary
net: udp_tunnel: fix memory leak in udp_tunnel_nic_unregister()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: udptunnel: fix memory leak in udptunnelnicunregister()

syzbot reported a memory leak [1] in the UDP tunnel NIC offload code.

When device registration fails (e.g. in registernetdevice()), netdev core unwinds by sending a single NETDEVUNREGISTER notification. If work was queued during NETDEVREGISTER (utn->workpending is set), udptunnelnic_unregister() returns early:

if (utn->work_pending)
    return;

Because failed registrations do not enter netdevwaitallrefsany(), no subsequent NETDEVUNREGISTER rebroadcast will ever occur. As a result, the struct udptunnelnic allocated in udptunnelnic_alloc() is leaked permanently.

Fix this by removing the early return. Instead, synchronously cancel any pending work with canceldelayedwork_sync() before freeing @utn.

To be able to call canceldelayedworksync() while holding RTNL (the work also needs RTNL), switch udptunnelnicdevicesyncwork() to rtnltrylock(). If RTNL is contended, requeue the work with a 1 jiffy delay (via queuedelayed_work()) to prevent high CPU contention while waiting for RTNL lock.

The utn->work_pending bookkeeping is no longer needed and is removed, as the workqueue core already tracks the pending/running state of the work.

[1] BUG: memory leak unreferenced object 0xffff888127d5f840 (size 96): comm "syz-executor", pid 5806, jiffies 4294942188 backtrace (crc 99fdb6c8): _kmallocnoprof+0x3bf/0x550 udptunnelnicalloc net/ipv4/udptunnelnic.c:756 [inline] udptunnelnicregister net/ipv4/udptunnelnic.c:833 [inline] udptunnelnicnetdeviceevent+0x804/0xab0 net/ipv4/udptunnelnic.c:931 notifiercallchain+0x59/0x160 kernel/notifier.c:85 callnetdevicenotifiersinfo+0x7d/0xb0 net/core/dev.c:2250 registernetdevice+0xc10/0xeb0 net/core/dev.c:11478

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74543.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cc4e3835eff474aa274d6e1d18f69d9d296d3b76
Fixed
b712da45bd9b9835d132e9fbc0c3e43c164cb1fd
Fixed
f82a2ded3d7a9098267c84f14eafdb98c4550ac5
Fixed
b322532a4b774db1b480a2de84125910a70739a5
Fixed
080695e6f005e2396f1207fd69d24c442cb230c6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74543.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.9.0
Fixed
6.12.103
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.44
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74543.json"