# CVE-2025-39764: netfilter: ctnetlink: remove refcounting in expectation dumpers

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.25% (percentile 10, 2026-11-26)
- **Published:** 2025-09-11T16:52:32.060Z
- **Modified:** 2026-11-10T13:17:50.203Z

## Who should check

- Anyone running Linux \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< b05500444b8eb97644efdd180839a04a706be97c; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< bada48ad5b0590e318d0f79636ff62a2ef9f4955; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 64b7684042246e3238464c66894e30ba30c7e851; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 9e5021a906532ca16e2aac69c0607711e1c70b1f; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 078d33c95bf534d37aa04269d1ae6158e20082d5; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< a4d634ded4d3d400f115d84f654f316f249531c9; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a
- Anyone running Linux 2.6.23

## Description

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

netfilter: ctnetlink: remove refcounting in expectation dumpers

Same pattern as previous patch: do not keep the expectation object
alive via refcount, only store a cookie value and then use that
as the skip hint for dump resumption.

AFAICS this has the same issue as the one resolved in the conntrack
dumper, when we do
  if (!refcount\_inc\_not\_zero(&exp-\>use))

to increment the refcount, there is a chance that exp == last, which
causes a double-increment of the refcount and subsequent memory leak.

## Affected and fixed versions

- Linux: \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< b05500444b8eb97644efdd180839a04a706be97c; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< bada48ad5b0590e318d0f79636ff62a2ef9f4955; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 64b7684042246e3238464c66894e30ba30c7e851; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 9e5021a906532ca16e2aac69c0607711e1c70b1f; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 078d33c95bf534d37aa04269d1ae6158e20082d5; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< a4d634ded4d3d400f115d84f654f316f249531c9; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a (cvelist)
- Linux: 2.6.23 (cvelist)

## Mitigation

- Upgrade Linux to 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39764.md
Affected: Linux >= cf6994c2b9812a9f02b99e89df411ffc5db9c779, < b05500444b8eb97644efdd180839a04a706be97c; >= cf6994c2b9812a9f02b99e89df411ffc5db9c779, < bada48ad5b0590e318d0f79636ff62a2ef9f4955; >= cf6994c2b9812a9f02b99e89df411ffc5db9c779, < 64b7684042246e3238464c66894e30ba30c7e851; >= cf6994c2b9812a9f02b99e8…
Fixed in: Linux 64b7684042246e3238464c66894e30ba30c7e851, Linux 9e5021a906532ca16e2aac69c0607711e1c70b1f, Linux 078d33c95bf534d37aa04269d1ae6158e20082d5, Linux 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a

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-2025-39764 being exploited?

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

### How serious is CVE-2025-39764?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39764?

Linux \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< b05500444b8eb97644efdd180839a04a706be97c; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< bada48ad5b0590e318d0f79636ff62a2ef9f4955; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 64b7684042246e3238464c66894e30ba30c7e851; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 9e5021a906532ca16e2aac69c0607711e1c70b1f; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 078d33c95bf534d37aa04269d1ae6158e20082d5; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< a4d634ded4d3d400f115d84f654f316f249531c9; \>= cf6994c2b9812a9f02b99e89df411ffc5db9c779, \< 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a; Linux 2.6.23.

### Is there a fix for CVE-2025-39764?

Yes. Fixed in Linux 64b7684042246e3238464c66894e30ba30c7e851, Linux 9e5021a906532ca16e2aac69c0607711e1c70b1f, Linux 078d33c95bf534d37aa04269d1ae6158e20082d5, Linux 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a. Upgrade Linux to 1492e3dcb2be3aa46d1963da96aa9593e4e4db5a or later.

### How do I check if I'm affected by CVE-2025-39764?

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

- patch: <https://git.kernel.org/stable/c/a4d634ded4d3d400f115d84f654f316f249531c9>
- patch: <https://git.kernel.org/stable/c/1492e3dcb2be3aa46d1963da96aa9593e4e4db5a>
- other: <https://git.kernel.org/stable/c/b05500444b8eb97644efdd180839a04a706be97c>
- other: <https://git.kernel.org/stable/c/bada48ad5b0590e318d0f79636ff62a2ef9f4955>
- other: <https://git.kernel.org/stable/c/64b7684042246e3238464c66894e30ba30c7e851>
- other: <https://git.kernel.org/stable/c/9e5021a906532ca16e2aac69c0607711e1c70b1f>
- other: <https://git.kernel.org/stable/c/078d33c95bf534d37aa04269d1ae6158e20082d5>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## 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-2025-39764>

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