CVE-2025-40173

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40173
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40173.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40173
Downstream
Published
2025-11-12T10:53:49.571Z
Modified
2025-11-27T02:32:40.341808Z
Summary
net/ip6_tunnel: Prevent perpetual tunnel growth
Details

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->neededheadroom, too. While ipv4 tunnel headroom adjustment growth was limited in commit 5ae1e9922bbd ("net: iptunnel: 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2025/40xxx/CVE-2025-40173.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
566f8d5c8a443f2dd69c5460fdec43ed1c870c65
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
11f6066af3bfb8149aa16c42c0b0c5ea5b199a94
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
402b6985e872b4cf394bbbf33b503947a326a6cb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
10fe967efe73c610e526ff7460581610633dee9c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
48294a67863c9cfa367abb66bbf0ef6548ae124f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
eeb4345488672584db4f8c20a1ae13a212ce31c4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
b6eb25d870f1a8ae571fd3da2244b71df547824b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8eb30be0352d09165e94a41fef1c7b994dca0714
Fixed
21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.7.0
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.196
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.158
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.114
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.55
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.5