CVE-2025-22005

MediumCVSS 5.5/10Last modified Nov 10, 2026

Description

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.

Metrics

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

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 77c41cdbe6bce476e08d3251c0d501feaf10a9f3; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 119dcafe36795a15ae53351cbbd6177aaf94ffef; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 29d91820184d5cbc70f3246d4911d96eaeb930d6; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < d3d5b4b5ae263c3225db363ba08b937e2e2b0380; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 9740890ee20e01f99ff1dde84c63dcf089fabb98
LinuxLinux5.3
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.6, < *
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.7, < *
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.6, < *
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.7, < *
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.6, < *
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.7, < *
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.6, < *
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.7, < *
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.6, < *
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.7, < *

References

Timeline

Published
Apr 3, 2025
Last modified
Nov 10, 2026
NVD status
Modified

Related CVEs from 2025

CVE-2025-220065.5In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: am65-cpsw: Fix NAPI registration sequence RegisteriCVE-2025-220075.5In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Fix error code in chan_alloc_skb_cb() The chan_alloc_skb_cbCVE-2025-220085.5In the Linux kernel, the following vulnerability has been resolved: regulator: check that dummy regulator has been probed before using it CVE-2025-220095.5In the Linux kernel, the following vulnerability has been resolved: regulator: dummy: force synchronous probing Sometimes I get a NULL poiCVE-2025-22016.9Broken access control vulnerability in the IcProgress Innovación y Cualificación plugin. This vulnerability allows an attacker to obtain senCVE-2025-220105.5In the Linux kernel, the following vulnerability has been resolved: RDMA/hns: Fix soft lockup during bt pages loop Driver runs a for-loop CVE-2025-220115.5In the Linux kernel, the following vulnerability has been resolved: ARM: dts: bcm2711: Fix xHCI power-domain During s2idle tests on the RaCVE-2025-220125.5In the Linux kernel, the following vulnerability has been resolved: Revert "arm64: dts: qcom: sdm845: Affirm IDR0.CCTW on apps_smmu" ThereCVE-2025-220135.5In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Unconditionally save+flush host FPSIMD/SVE/SME state ThereCVE-2025-220145.5In the Linux kernel, the following vulnerability has been resolved: soc: qcom: pdr: Fix the potential deadlock When some client process A CVE-2025-220155.5In the Linux kernel, the following vulnerability has been resolved: mm/migrate: fix shmem xarray update during migration A shmem folio canCVE-2025-220165.5In the Linux kernel, the following vulnerability has been resolved: dpll: fix xa_alloc_cyclic() error handling In case of returning 1 from
CVE-2025-22005: Medium severity, CVSS 5.5 | Vulnix