# CVE-2026-74715: bpf: Fix netns reference imbalance in conntrack kfuncs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-08-22T15:33:10.262Z
- **Modified:** 2026-10-30T13:20:04.647Z

## Who should check

- Anyone running Linux \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< cfde990193135a35637e55f69e83e4ab441e60ab; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fb22bedf0c4f4f05bfa6e4a7ec0fd97bbdff9ce8; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 41731d4290400cb898f15f049ae4018d45415e69; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 4af94462c0ca2187a02a1a6641020ae888c74d5c; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< e5e060eb63d10b41ab60fd955649479d99b38210; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fdeba03fea78407a8c52faa99177c9f7f29f90eb
- Anyone running Linux 6.0

## 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.

## Affected and fixed versions

- Linux: \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< cfde990193135a35637e55f69e83e4ab441e60ab; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fb22bedf0c4f4f05bfa6e4a7ec0fd97bbdff9ce8; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 41731d4290400cb898f15f049ae4018d45415e69; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 4af94462c0ca2187a02a1a6641020ae888c74d5c; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< e5e060eb63d10b41ab60fd955649479d99b38210; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fdeba03fea78407a8c52faa99177c9f7f29f90eb (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74715. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74715.md
Affected: Linux >= aed8ee7feb44b6537af1e0b4f03365d42928be38, < cfde990193135a35637e55f69e83e4ab441e60ab; >= aed8ee7feb44b6537af1e0b4f03365d42928be38, < fb22bedf0c4f4f05bfa6e4a7ec0fd97bbdff9ce8; >= aed8ee7feb44b6537af1e0b4f03365d42928be38, < 41731d4290400cb898f15f049ae4018d45415e69; >= aed8ee7feb44b6537af1e0b…
Fixed in: Linux 41731d4290400cb898f15f049ae4018d45415e69, Linux 4af94462c0ca2187a02a1a6641020ae888c74d5c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74715 being exploited?

There is no confirmed exploitation: CVE-2026-74715 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74715?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-74715?

Linux \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< cfde990193135a35637e55f69e83e4ab441e60ab; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fb22bedf0c4f4f05bfa6e4a7ec0fd97bbdff9ce8; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 41731d4290400cb898f15f049ae4018d45415e69; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< 4af94462c0ca2187a02a1a6641020ae888c74d5c; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< e5e060eb63d10b41ab60fd955649479d99b38210; \>= aed8ee7feb44b6537af1e0b4f03365d42928be38, \< fdeba03fea78407a8c52faa99177c9f7f29f90eb; Linux 6.0.

### Is there a fix for CVE-2026-74715?

Yes. Fixed in Linux 41731d4290400cb898f15f049ae4018d45415e69, Linux 4af94462c0ca2187a02a1a6641020ae888c74d5c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-74715?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/cfde990193135a35637e55f69e83e4ab441e60ab>
- other: <https://git.kernel.org/stable/c/fb22bedf0c4f4f05bfa6e4a7ec0fd97bbdff9ce8>
- other: <https://git.kernel.org/stable/c/41731d4290400cb898f15f049ae4018d45415e69>
- other: <https://git.kernel.org/stable/c/4af94462c0ca2187a02a1a6641020ae888c74d5c>
- other: <https://git.kernel.org/stable/c/e5e060eb63d10b41ab60fd955649479d99b38210>
- other: <https://git.kernel.org/stable/c/fdeba03fea78407a8c52faa99177c9f7f29f90eb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74715>

HTML: <https://flawdb.com/CVE-2026-74715> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74715>
