# CVE-2025-40173: net/ip6\_tunnel: Prevent perpetual tunnel growth

> 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.23% (percentile 9, 2026-11-28)
- **Published:** 2025-11-12T10:53:49.571Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 402b6985e872b4cf394bbbf33b503947a326a6cb; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 10fe967efe73c610e526ff7460581610633dee9c; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 48294a67863c9cfa367abb66bbf0ef6548ae124f; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< eeb4345488672584db4f8c20a1ae13a212ce31c4; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< b6eb25d870f1a8ae571fd3da2244b71df547824b; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16
- Anyone running Linux 4.7

## Description

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

net/ip6\_tunnel: Prevent perpetual tunnel growth

Similarly to ipv4 tunnel, ipv6 version updates dev-\>needed\_headroom, too.
While ipv4 tunnel headroom adjustment growth was limited in
commit 5ae1e9922bbd ("net: ip\_tunnel: prevent perpetual headroom growth"),
ipv6 tunnel yet increases the headroom without any ceiling.

Reflect ipv4 tunnel headroom adjustment limit on ipv6 version.

Credits to Francesco Ruggeri, who was originally debugging this issue
and wrote local Arista-specific patch and a reproducer.

## Affected and fixed versions

- Linux: \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 402b6985e872b4cf394bbbf33b503947a326a6cb; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 10fe967efe73c610e526ff7460581610633dee9c; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 48294a67863c9cfa367abb66bbf0ef6548ae124f; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< eeb4345488672584db4f8c20a1ae13a212ce31c4; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< b6eb25d870f1a8ae571fd3da2244b71df547824b; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-40173.md
Affected: Linux >= 8eb30be0352d09165e94a41fef1c7b994dca0714, < 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; >= 8eb30be0352d09165e94a41fef1c7b994dca0714, < 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; >= 8eb30be0352d09165e94a41fef1c7b994dca0714, < 402b6985e872b4cf394bbbf33b503947a326a6cb; >= 8eb30be0352d09165e94a41…
Fixed in: Linux 566f8d5c8a443f2dd69c5460fdec43ed1c870c65, Linux 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94, Linux 402b6985e872b4cf394bbbf33b503947a326a6cb, Linux 10fe967efe73c610e526ff7460581610633dee9c, Linux 48294a67863c9cfa367abb66bbf0ef6548ae124f, Linux 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16

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

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

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

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

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

Linux \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 402b6985e872b4cf394bbbf33b503947a326a6cb; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 10fe967efe73c610e526ff7460581610633dee9c; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 48294a67863c9cfa367abb66bbf0ef6548ae124f; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< eeb4345488672584db4f8c20a1ae13a212ce31c4; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< b6eb25d870f1a8ae571fd3da2244b71df547824b; \>= 8eb30be0352d09165e94a41fef1c7b994dca0714, \< 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16; Linux 4.7.

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

Yes. Fixed in Linux 566f8d5c8a443f2dd69c5460fdec43ed1c870c65, Linux 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94, Linux 402b6985e872b4cf394bbbf33b503947a326a6cb, Linux 10fe967efe73c610e526ff7460581610633dee9c, Linux 48294a67863c9cfa367abb66bbf0ef6548ae124f, Linux 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16. Upgrade Linux to 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16 or later.

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

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/566f8d5c8a443f2dd69c5460fdec43ed1c870c65>
- other: <https://git.kernel.org/stable/c/11f6066af3bfb8149aa16c42c0b0c5ea5b199a94>
- other: <https://git.kernel.org/stable/c/402b6985e872b4cf394bbbf33b503947a326a6cb>
- other: <https://git.kernel.org/stable/c/10fe967efe73c610e526ff7460581610633dee9c>
- other: <https://git.kernel.org/stable/c/48294a67863c9cfa367abb66bbf0ef6548ae124f>
- other: <https://git.kernel.org/stable/c/eeb4345488672584db4f8c20a1ae13a212ce31c4>
- other: <https://git.kernel.org/stable/c/b6eb25d870f1a8ae571fd3da2244b71df547824b>
- other: <https://git.kernel.org/stable/c/21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16>

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

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