# CVE-2025-38678: netfilter: nf\_tables: reject duplicate device on updates

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-09-03T13:01:15.799Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 0521e694d5b80899fba8695881a6349f9bc538cb; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 3f358a66a04513311668ea4b40f5064e253d8386; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf23d531a9d496863aa4c5a0e2f71f0a23f3df3c; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< d7615bde541f16517d6790412da6ec46fa8a4c1f; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf5fb87fcdaaaafec55dcc0dc5a9e15ead343973
- Anyone running Linux 5.8

## Description

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

netfilter: nf\_tables: reject duplicate device on updates

A chain/flowtable update with duplicated devices in the same batch is
possible. Unfortunately, netdev event path only removes the first
device that is found, leaving unregistered the hook of the duplicated
device.

Check if a duplicated device exists in the transaction batch, bail out
with EEXIST in such case.

WARNING is hit when unregistering the hook:

 \[49042.221275\] WARNING: CPU: 4 PID: 8425 at net/netfilter/core.c:340 nf\_hook\_entry\_head+0xaa/0x150
 \[49042.221375\] CPU: 4 UID: 0 PID: 8425 Comm: nft Tainted: G S                  6.16.0+ \#170 PREEMPT(full)
 \[...\]
 \[49042.221382\] RIP: 0010:nf\_hook\_entry\_head+0xaa/0x150

## Affected and fixed versions

- Linux: \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 0521e694d5b80899fba8695881a6349f9bc538cb; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 3f358a66a04513311668ea4b40f5064e253d8386; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf23d531a9d496863aa4c5a0e2f71f0a23f3df3c; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< d7615bde541f16517d6790412da6ec46fa8a4c1f; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf5fb87fcdaaaafec55dcc0dc5a9e15ead343973 (cvelist)
- Linux: 5.8 (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-2025-38678. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38678.md
Affected: Linux >= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, < 0521e694d5b80899fba8695881a6349f9bc538cb; >= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, < 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd; >= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, < 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2; >= 78d9f48f7f44431a25da2b4…
Fixed in: Linux 0521e694d5b80899fba8695881a6349f9bc538cb, Linux 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd, Linux 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2, Linux 3f358a66a04513311668ea4b40f5064e253d8386

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

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

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

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

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

Linux \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 0521e694d5b80899fba8695881a6349f9bc538cb; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< 3f358a66a04513311668ea4b40f5064e253d8386; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf23d531a9d496863aa4c5a0e2f71f0a23f3df3c; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< d7615bde541f16517d6790412da6ec46fa8a4c1f; \>= 78d9f48f7f44431a25da2b46b3a8812f6ff2b981, \< cf5fb87fcdaaaafec55dcc0dc5a9e15ead343973; Linux 5.8.

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

Yes. Fixed in Linux 0521e694d5b80899fba8695881a6349f9bc538cb, Linux 4681960bc0f4f8bcc782cbf2fd205f48ad314dfd, Linux 4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2, Linux 3f358a66a04513311668ea4b40f5064e253d8386. No fix listed yet: follow the vendor advisory.

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

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/3f358a66a04513311668ea4b40f5064e253d8386>
- patch: <https://git.kernel.org/stable/c/cf23d531a9d496863aa4c5a0e2f71f0a23f3df3c>
- patch: <https://git.kernel.org/stable/c/d7615bde541f16517d6790412da6ec46fa8a4c1f>
- patch: <https://git.kernel.org/stable/c/cf5fb87fcdaaaafec55dcc0dc5a9e15ead343973>
- other: <https://git.kernel.org/stable/c/0521e694d5b80899fba8695881a6349f9bc538cb>
- other: <https://git.kernel.org/stable/c/4681960bc0f4f8bcc782cbf2fd205f48ad314dfd>
- other: <https://git.kernel.org/stable/c/4ce2a0c3b8497a66cfc25fc7ca3d087258a785d2>

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

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