VDB

CVE-2025-22005

CVE-2025-22005 PUBLISHED CVSS 5.5 MEDIUM

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.

PackageEcosystemFixed in
python3-perf6.12Amazon Linux6.12.22-27.96.amzn2023
python3-perfAmazon Linux6.1.132-147.221.amzn2023
perf6.12Amazon Linux6.12.22-27.96.amzn2023
kernel-tools-develAmazon Linux6.1.132-147.221.amzn2023
kernelAmazon Linux6.1.132-147.221.amzn2023
kernel6.12Amazon Linux6.12.22-27.96.amzn2023
kernel-libbpf-staticAmazon Linux6.1.132-147.221.amzn2023
kernel-libbpfAmazon Linux6.1.132-147.221.amzn2023
kernel-libbpf-develAmazon Linux6.1.132-147.221.amzn2023
linux_kernellinux6.13.9, 6.12.21, 6.6.85, 6.1.132, 5.10.236, 5.4.292
LinuxLinuxd3d5b4b5ae263c3225db363ba08b937e2e2b0380, 9740890ee20e01f99ff1dde84c63dcf089fabb98, 77c41cdbe6bce476e08d3251c0d501feaf10a9f3, 29d91820184d5cbc70f3246d4911d96eaeb930d6, 119dcafe36795a15ae53351cbbd6177aaf94ffef

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b
LinuxLinux5.3, 0, 5.4.292
amazon:2023python3-perf6.120
amazon:2023python3-perf0
amazon:2023perf6.120
amazon:2023kernel-tools-devel0
amazon:2023kernel0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.6, 3.1.7
amazon:2023kernel6.120
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.6, 3.1.7
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7
amazon:2023kernel-libbpf-devel0
LinuxLinux6.14, 7dd73168e273938b9e9bb42ca51b0c27d807992b, 7dd73168e273938b9e9bb42ca51b0c27d807992b
amazon:2023kernel-livepatch-6.12.22-27.960
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.7, 3.1.6
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-tools0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›