# CVE-2025-71160: netfilter: nf\_tables: avoid chain re-validation if possible

> 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.20% (percentile 6, 2026-11-28)
- **Published:** 2026-01-23T15:23:58.652Z
- **Modified:** 2026-11-05T22:17:38.580Z

## Who should check

- Anyone running Linux \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 14fa3d1927f1382f86e3f70a51f26005c8e3cff6; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 09d6074995c186e449979fe6c1b0f1a69cf9bd3b; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 8e1a1bc4f5a42747c08130b8242ebebd1210b32f
- Anyone running Linux 4.18

## Description

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

netfilter: nf\_tables: avoid chain re-validation if possible

Hamza Mahfooz reports cpu soft lock-ups in
nft\_chain\_validate():

 watchdog: BUG: soft lockup - CPU\#1 stuck for 27s! \[iptables-nft-re:37547\]
\[..\]
 RIP: 0010:nft\_chain\_validate+0xcb/0x110 \[nf\_tables\]
\[..\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_immediate\_validate+0x36/0x50 \[nf\_tables\]
  nft\_chain\_validate+0xc9/0x110 \[nf\_tables\]
  nft\_table\_validate+0x6b/0xb0 \[nf\_tables\]
  nf\_tables\_validate+0x8b/0xa0 \[nf\_tables\]
  nf\_tables\_commit+0x1df/0x1eb0 \[nf\_tables\]
\[..\]

Currently nf\_tables will traverse the entire table (chain graph), starting
from the entry points (base chains), exploring all possible paths
(chain jumps).  But there are cases where we could avoid revalidation.

Consider:
1  input -\> j2 -\> j3
2  input -\> j2 -\> j3
3  input -\> j1 -\> j2 -\> j3

Then the second rule does not need to revalidate j2, and, by extension j3,
because this was already checked during validation of the first rule.
We need to validate it only for rule 3.

This is needed because chain loop detection also ensures we do not exceed
the jump stack: Just because we know that j2 is cycle free, its last jump
might now exceed the allowed stack size.  We also need to update all
reachable chains with the new largest observed call depth.

Care has to be taken to revalidate even if the chain depth won't be an
issue: chain validation also ensures that expressions are not called from
invalid base chains.  For example, the masquerade expression can only be
called from NAT postrouting base chains.

Therefore we also need to keep record of the base chain context (type,
hooknum) and revalidate if the chain becomes reachable from a different
hook location.

## Affected and fixed versions

- Linux: \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 14fa3d1927f1382f86e3f70a51f26005c8e3cff6; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 09d6074995c186e449979fe6c1b0f1a69cf9bd3b; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 8e1a1bc4f5a42747c08130b8242ebebd1210b32f (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-71160.md
Affected: Linux >= a654de8fdc1815676ab750e70cab231fc814c29f, < 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1; >= a654de8fdc1815676ab750e70cab231fc814c29f, < 14fa3d1927f1382f86e3f70a51f26005c8e3cff6; >= a654de8fdc1815676ab750e70cab231fc814c29f, < 09d6074995c186e449979fe6c1b0f1a69cf9bd3b; >= a654de8fdc1815676ab750e…
Fixed in: Linux 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1, Linux 14fa3d1927f1382f86e3f70a51f26005c8e3cff6, Linux 09d6074995c186e449979fe6c1b0f1a69cf9bd3b, Linux 8e1a1bc4f5a42747c08130b8242ebebd1210b32f

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

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

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

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

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

Linux \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 14fa3d1927f1382f86e3f70a51f26005c8e3cff6; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 09d6074995c186e449979fe6c1b0f1a69cf9bd3b; \>= a654de8fdc1815676ab750e70cab231fc814c29f, \< 8e1a1bc4f5a42747c08130b8242ebebd1210b32f; Linux 4.18.

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

Yes. Fixed in Linux 53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1, Linux 14fa3d1927f1382f86e3f70a51f26005c8e3cff6, Linux 09d6074995c186e449979fe6c1b0f1a69cf9bd3b, Linux 8e1a1bc4f5a42747c08130b8242ebebd1210b32f. Upgrade Linux to 8e1a1bc4f5a42747c08130b8242ebebd1210b32f or later.

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

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/53de1e6cde8f9b791d9cf61aa0e7b02cf5bbe8b1>
- patch: <https://git.kernel.org/stable/c/14fa3d1927f1382f86e3f70a51f26005c8e3cff6>
- patch: <https://git.kernel.org/stable/c/09d6074995c186e449979fe6c1b0f1a69cf9bd3b>
- patch: <https://git.kernel.org/stable/c/8e1a1bc4f5a42747c08130b8242ebebd1210b32f>

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

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