UBUNTU-CVE-2026-74715: High severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix netns reference imbalance in conntrack kfuncs The opts argument of the BPF conntrack kfuncs can point to a shared map value. bpfnfctlookup() and bpfnfctallocentry() read opts->netnsid separately when acquiring and releasing the network namespace reference. The reference imbalance can occur as follows: CPU 0 CPU 1 read opts->netnsid (-1) skip getnetnsbyid() write opts->netnsid (id) read opts->netnsid (id) putnet(net) / no matching get / The reverse transition leaks the reference. Repeating the unmatched put can destroy a live namespace and crash later users. The kernel reported: Oops: general protection fault, probably for non-canonical address KASAN: null-ptr-deref in range [0x00000000000000e8-0x00000000000000ef] RIP: 0010:bpfprogtestrunxdp+0x52c/0x1700 Call Trace: sysbpf+0x1662/0x50c0 x64sysbpf+0x73/0xb0 dosyscall64+0xf9/0x540 entrySYSCALL64afterhwframe+0x77/0x7f Kernel panic - not syncing: Fatal exception Snapshot every input field of opts with READONCE() before validating or using it. The netnsid snapshot keeps the namespace get/put pair balanced, while the other snapshots keep the remaining options from changing partway through an invocation. The individual reads can still observe an inconsistent combination during a concurrent update, but each selected field value remains stable for that invocation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-nvidia-tegrato a version that resolves this vulnerability.Fixed in 6.8.0-1036.39 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In the BPF conntrack kfuncs, snapshot every input field of opts with READ_ONCE() before validating or using it; use the same netns_id snapshot for acquiring and releasing the network namespace reference so the get/put pair remains balanced.
Event History
Frequently Asked Questions
What access does an attacker need to trigger this issue?
The reported vector is local and requires high privileges. Exploitation involves BPF conntrack kfunctions and a shared map value whose netns_id can be changed concurrently.
What is the likely impact if the race is triggered repeatedly?
The mismatch can cause unmatched network-namespace reference releases or leaks. Repeated unmatched releases can destroy a live network namespace, leading to crashes of later users and potentially a kernel panic.
Which Ubuntu kernel packages are identified as affected?
The listed packages are ubuntu/linux-riscv, ubuntu/linux-realtime, ubuntu/linux-azure, ubuntu/linux-gcp, ubuntu/linux-azure-fde, ubuntu/linux-gke, ubuntu/linux-hwe-edge, and ubuntu/linux-gkeop.
How is the issue fixed?
The fix snapshots every input field in the opts structure with READ_ONCE() before validation or use. In particular, using one netns_id snapshot keeps the network namespace reference acquisition and release paired.