# CVE-2025-38472: netfilter: nf\_conntrack: fix crash due to removal of uninitialised entry

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-07-28T11:21:33.977Z
- **Modified:** 2026-10-15T22:18:42.500Z

## Who should check

- Anyone running Linux \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< a47ef874189d47f934d0809ae738886307c0ea22; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 76179961c423cd698080b5e4d5583cf7f4fcdde9; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< fc38c249c622ff5e3011b8845fd49dbfd9289afc; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 938ce0e8422d3793fe30df2ed0e37f6bc0598379; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 2d72afb340657f03f7261e9243b44457a9228ac7; 594cea2c09f7cd440d1ee1c4547d5bc6a646b0e4; \>= 5.18.13, \< 5.19
- Anyone running Linux 5.19

## Description

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

netfilter: nf\_conntrack: fix crash due to removal of uninitialised entry

A crash in conntrack was reported while trying to unlink the conntrack
entry from the hash bucket list:
    \[exception RIP: \_\_nf\_ct\_delete\_from\_lists+172\]
    \[..\]
 \#7 \[ff539b5a2b043aa0\] nf\_ct\_delete at ffffffffc124d421 \[nf\_conntrack\]
 \#8 \[ff539b5a2b043ad0\] nf\_ct\_gc\_expired at ffffffffc124d999 \[nf\_conntrack\]
 \#9 \[ff539b5a2b043ae0\] \_\_nf\_conntrack\_find\_get at ffffffffc124efbc \[nf\_conntrack\]
    \[..\]

The nf\_conn struct is marked as allocated from slab but appears to be in
a partially initialised state:

 ct hlist pointer is garbage; looks like the ct hash value
 (hence crash).
 ct-\>status is equal to IPS\_CONFIRMED\|IPS\_DYING, which is expected
 ct-\>timeout is 30000 (=30s), which is unexpected.

Everything else looks like normal udp conntrack entry.  If we ignore
ct-\>status and pretend its 0, the entry matches those that are newly
allocated but not yet inserted into the hash:
  - ct hlist pointers are overloaded and store/cache the raw tuple hash
  - ct-\>timeout matches the relative time expected for a new udp flow
    rather than the absolute 'jiffies' value.

If it were not for the presence of IPS\_CONFIRMED,
\_\_nf\_conntrack\_find\_get() would have skipped the entry.

Theory is that we did hit following race:

cpu x 			cpu y			cpu z
 found entry E		found entry E
 E is expired		\<preemption\>
 nf\_ct\_delete()
 return E to rcu slab
					init\_conntrack
					E is re-inited,
					ct-\>status set to 0
					reply tuplehash hnnode.pprev
					stores hash value.

cpu y found E right before it was deleted on cpu x.
E is now re-inited on cpu z.  cpu y was preempted before
checking for expiry and/or confirm bit.

					-\>refcnt set to 1
					E now owned by skb
					-\>timeout set to 30000

If cpu y were to resume now, it would observe E as
expired but would skip E due to missing CONFIRMED bit.

					nf\_conntrack\_confirm gets called
					sets: ct-\>status \|= CONFIRMED
					This is wrong: E is not yet added
					to hashtable.

cpu y resumes, it observes E as expired but CONFIRMED:
			\<resumes\>
			nf\_ct\_expired()
			 -\> yes (ct-\>timeout is 30s)
			confirmed bit set.

cpu y will try to delete E from the hashtable:
			nf\_ct\_delete() -\> set DYING bit
			\_\_nf\_ct\_delete\_from\_lists

Even this scenario doesn't guarantee a crash:
cpu z still holds the table bucket lock(s) so y blocks:

			wait for spinlock held by z

					CONFIRMED is set but there is no
					guarantee ct will be added to hash:
					"chaintoolong" or "clash resolution"
					logic both skip the insert step.
					reply hnnode.pprev still stores the
					hash value.

					unlocks spinlock
					return NF\_DROP
			\<unblocks, then
			 crashes on hlist\_nulls\_del\_rcu pprev\>

In case CPU z does insert the entry into the hashtable, cpu y will unlink
E again right away but no crash occurs.

Without 'cpu y' race, 'garbage' hlist is of no consequence:
ct refcnt remains at 1, eventually skb will be free'd and E gets
destroyed via: nf\_conntrack\_put -\> nf\_conntrack\_destroy -\> nf\_ct\_destroy.

To resolve this, move the IPS\_CONFIRMED assignment after the table
insertion but before the unlock.

Pablo points out that the confirm-bit-store could be reordered to happen
before hlist add resp. the timeout fixup, so switch to set\_bit and
before\_atomic memory barrier to prevent this.

It doesn't matter if other CPUs can observe a newly inserted entry right
before the CONFIRMED bit was set:

Such event cannot be distinguished from above "E is the old incarnation"
case: the entry will be skipped.

Also change nf\_ct\_should\_gc() to first check the confirmed bit.

The gc sequence is:
 1. Check if entry has expired, if not skip to next entry
 2. Obtain a reference to the expired entry.
 3. Call nf\_ct\_should\_gc() to double-check step 1.

nf\_ct\_should\_gc() is thus called only for entries that already failed an
expiry check. After this patch, once the confirmed bit check pas
---truncated---

## Affected and fixed versions

- Linux: \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< a47ef874189d47f934d0809ae738886307c0ea22; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 76179961c423cd698080b5e4d5583cf7f4fcdde9; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< fc38c249c622ff5e3011b8845fd49dbfd9289afc; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 938ce0e8422d3793fe30df2ed0e37f6bc0598379; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 2d72afb340657f03f7261e9243b44457a9228ac7; 594cea2c09f7cd440d1ee1c4547d5bc6a646b0e4; \>= 5.18.13, \< 5.19 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 5.19 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-38472. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38472.md
Affected: Linux >= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, < a47ef874189d47f934d0809ae738886307c0ea22; >= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, < 76179961c423cd698080b5e4d5583cf7f4fcdde9; >= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, < fc38c249c622ff5e3011b8845fd49dbfd9289afc; >= 1397af5bfd7d32b0cf2adb7…
Fixed in: Linux 76179961c423cd698080b5e4d5583cf7f4fcdde9, Linux 938ce0e8422d3793fe30df2ed0e37f6bc0598379, Linux 2d72afb340657f03f7261e9243b44457a9228ac7, Linux 5.19

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-38472 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< a47ef874189d47f934d0809ae738886307c0ea22; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 76179961c423cd698080b5e4d5583cf7f4fcdde9; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< fc38c249c622ff5e3011b8845fd49dbfd9289afc; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 938ce0e8422d3793fe30df2ed0e37f6bc0598379; \>= 1397af5bfd7d32b0cf2adb70a78c9a9e8f11d912, \< 2d72afb340657f03f7261e9243b44457a9228ac7; 594cea2c09f7cd440d1ee1c4547d5bc6a646b0e4; \>= 5.18.13, \< 5.19; Linux 5.19.

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

Yes. Fixed in Linux 76179961c423cd698080b5e4d5583cf7f4fcdde9, Linux 938ce0e8422d3793fe30df2ed0e37f6bc0598379, Linux 2d72afb340657f03f7261e9243b44457a9228ac7, Linux 5.19. Upgrade Linux to 5.19 or later.

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

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/a47ef874189d47f934d0809ae738886307c0ea22>
- patch: <https://git.kernel.org/stable/c/76179961c423cd698080b5e4d5583cf7f4fcdde9>
- patch: <https://git.kernel.org/stable/c/fc38c249c622ff5e3011b8845fd49dbfd9289afc>
- patch: <https://git.kernel.org/stable/c/938ce0e8422d3793fe30df2ed0e37f6bc0598379>
- patch: <https://git.kernel.org/stable/c/2d72afb340657f03f7261e9243b44457a9228ac7>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.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-38472>

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