Description
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. __bpf_nf_ct_lookup() and __bpf_nf_ct_alloc_entry() read
opts->netns_id separately when acquiring and releasing the network
namespace reference.

The reference imbalance can occur as follows:

CPU 0 CPU 1
read opts->netns_id (-1)
skip get_net_ns_by_id()
write opts->netns_id (id)
read opts->netns_id (id)
put_net(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:bpf_prog_test_run_xdp+0x52c/0x1700
Call Trace:
__sys_bpf+0x1662/0x50c0
__x64_sys_bpf+0x73/0xb0
do_syscall_64+0xf9/0x540
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Kernel panic - not syncing: Fatal exception

Snapshot every input field of opts with READ_ONCE() before validating or
using it. The netns_id 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.
Published: 2026-08-22
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel crash / denial of service that can occur when a process loads a BPF program using conntrack kfuncs
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises from a reference imbalance in the connection tracking functions used by BPF programs. The kernel reads the network namespace identifier from the opts structure at two separate points, acquiring and releasing a reference on separate CPU cores. If a concurrent update occurs, the put operation may run without a matching get, leaking a reference. Repeated mismatches can destroy a live namespace and later crash the kernel with a general protection fault or KASAN null pointer dereference. The crash manifests as a kernel Oops and may lead to a system reboot, representing a denial of service. The weakness is a reference‑counting bug that can be triggered by any BPF program that calls the affected conntrack functions.

Affected Systems

The flaw resides in the Linux kernel. The affected product is the Linux kernel; the specific versions are not listed in the advisory, so all kernel releases prior to the fix may be vulnerable. The CNA vendor/product entry lists "Linux:Linux"; no further version detail is provided.

Risk and Exploitability

The CVSS score is 7.8, indicating a high severity vulnerability. The EPSS score is < 1%, and the issue is not currently listed in the CISA KEV database, indicating no known widespread exploitation yet. The likely attack vector is local: an attacker with the ability to load a BPF program (typically root or another privileged user) could trigger the flaw by crafting or executing a BPF script that uses the conntrack kfuncs. Because the bug leads to a crash, the primary consequence is availability loss rather than confidentiality or integrity compromise.

Generated by OpenCVE AI on August 25, 2026 at 09:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the reference‑balance fix for bpf conntrack functions
  • If an update is not immediately possible, disable or remove any BPF programs that use the affected conntrack kfuncs to prevent the imbalance from occurring
  • Monitor system logs for kernel‑panic messages related to BPF or conntrack to detect accidental usage of the vulnerable functions
  • Apply the documented source‑code patch that snapshots opts with READ_ONCE() before validation to maintain reference balance, as an interim kernel patch if a full kernel upgrade cannot be deployed

Generated by OpenCVE AI on August 25, 2026 at 09:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Tue, 25 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Mon, 24 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Sat, 22 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description 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. __bpf_nf_ct_lookup() and __bpf_nf_ct_alloc_entry() read opts->netns_id separately when acquiring and releasing the network namespace reference. The reference imbalance can occur as follows: CPU 0 CPU 1 read opts->netns_id (-1) skip get_net_ns_by_id() write opts->netns_id (id) read opts->netns_id (id) put_net(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:bpf_prog_test_run_xdp+0x52c/0x1700 Call Trace: __sys_bpf+0x1662/0x50c0 __x64_sys_bpf+0x73/0xb0 do_syscall_64+0xf9/0x540 entry_SYSCALL_64_after_hwframe+0x77/0x7f Kernel panic - not syncing: Fatal exception Snapshot every input field of opts with READ_ONCE() before validating or using it. The netns_id 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.
Title bpf: Fix netns reference imbalance in conntrack kfuncs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-25T05:41:58.565Z

Reserved: 2026-08-15T05:44:03.928Z

Link: CVE-2026-74715

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:46.313

Modified: 2026-08-25T06:18:57.063

Link: CVE-2026-74715

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T00:00:00Z

Links: CVE-2026-74715 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T09:30:05Z

Weaknesses