CVE-2025-22005
ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().
Reported by linux · Published April 3, 2025
In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw(). fib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything when it fails. Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6_nh") moved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init() but forgot to add cleanup for fib6_nh->nh_common.nhc_pcpu_rth_output in case it fails to allocate fib6_nh->rt6i_pcpu, resulting in memleak. Let's call fib_nh_common_release() and clear nhc_pcpu_rth_output in the error path. Note that we can remove the fib6_nh_release() call in nh_create_ipv6() later in net-next.git.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| python3-perf | Amazon Linux | 6.1.132-147.221.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| linux_kernel | linux | 6.13.9, 6.12.21, 6.6.85, 6.1.132, 5.10.236, 5.4.292 |
| Linux | Linux | d3d5b4b5ae263c3225db363ba08b937e2e2b0380, 9740890ee20e01f99ff1dde84c63dcf089fabb98, 77c41cdbe6bce476e08d3251c0d501feaf10a9f3, 29d91820184d5cbc70f3246d4911d96eaeb930d6, 119dcafe36795a15ae53351cbbd6177aaf94ffef |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b |
| Linux | Linux | 5.3, 0, 5.4.292 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.6, 3.1.7 |
| amazon:2023 | kernel6.12 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Linux | Linux | 6.14, 7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b |
| amazon:2023 | kernel-livepatch-6.12.22-27.96 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
…and 11 more
Timeline
- Apr 2, 2025 CVE Published
- Apr 3, 2025 EPSS Score (30 in total, the first dated here)
- May 7, 2025 Coalition ESS Score (8 in total, the first dated here)
- Oct 12, 2025 PoC Published (5 in total, the first dated here)
- Dec 21, 2025 Security Advisory (195 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (176 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22005
vulnetix vdb fixes CVE-2025-22005
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22005/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart