5.5
MEDIUM
CVE-2025-22005
Linux Kernel IPv6 Memory Leak Vulnerability
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.

INFO

Published Date :

April 3, 2025, 8:15 a.m.

Last Modified :

April 10, 2025, 4:09 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2025-22005 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-22005 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-22005 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 10, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-401
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.13.9 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.85 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.21 *cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.3 up to (excluding) 5.4.292 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.236 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.132
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/119dcafe36795a15ae53351cbbd6177aaf94ffef Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/16267a5036173d0173377545b4b6021b081d0933 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/1bd12dfc058e1e68759d313d7727d68dbc1b8964 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/29d91820184d5cbc70f3246d4911d96eaeb930d6 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/596a883c4ce2d2e9c175f25b98fed3a1f33fea38 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/77c41cdbe6bce476e08d3251c0d501feaf10a9f3 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/9740890ee20e01f99ff1dde84c63dcf089fabb98 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d3d5b4b5ae263c3225db363ba08b937e2e2b0380 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 10, 2025

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/16267a5036173d0173377545b4b6021b081d0933
    Added Reference https://git.kernel.org/stable/c/1bd12dfc058e1e68759d313d7727d68dbc1b8964
    Added Reference https://git.kernel.org/stable/c/596a883c4ce2d2e9c175f25b98fed3a1f33fea38
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 03, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/119dcafe36795a15ae53351cbbd6177aaf94ffef
    Added Reference https://git.kernel.org/stable/c/29d91820184d5cbc70f3246d4911d96eaeb930d6
    Added Reference https://git.kernel.org/stable/c/77c41cdbe6bce476e08d3251c0d501feaf10a9f3
    Added Reference https://git.kernel.org/stable/c/9740890ee20e01f99ff1dde84c63dcf089fabb98
    Added Reference https://git.kernel.org/stable/c/d3d5b4b5ae263c3225db363ba08b937e2e2b0380
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-22005 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-22005 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jun. 08, 2025 13:09