# CVE-2025-40173: net/ip6_tunnel: Prevent perpetual tunnel growth

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-11-12T10:53:49.571Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 566f8d5c8a443f2dd69c5460fdec43ed1c870c65; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 402b6985e872b4cf394bbbf33b503947a326a6cb; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 10fe967efe73c610e526ff7460581610633dee9c; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 48294a67863c9cfa367abb66bbf0ef6548ae124f; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before eeb4345488672584db4f8c20a1ae13a212ce31c4; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before b6eb25d870f1a8ae571fd3da2244b71df547824b; from 8eb30be0352d09165e94a41fef1c7b994dca0714 before 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16; 4.7 (not affected: before 4.7; from 5.4.301 up to 5.4.*; from 5.10.246 up to 5.10.*; from 5.15.196 up to 5.15.*; from 6.1.158 up to 6.1.*; from 6.6.114 up to 6.6.*; from 6.12.55 up to 6.12.*; from 6.17.5 up to 6.17.*; from 6.18 up to *)

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

## Sources

- CVE List: [CVE-2025-40173](https://www.cve.org/CVERecord?id=CVE-2025-40173), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40173](https://nvd.nist.gov/vuln/detail/CVE-2025-40173), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40173 · Whole record: https://cve.day/CVE-2025-40173.json · Rebuilt by cve.day 2026-11-25T22:59:07.565Z
