First published: Thu Apr 03 2025(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | ||
Linux Kernel | >=5.3<5.4.292 | |
Linux Kernel | >=5.5<5.10.236 | |
Linux Kernel | >=5.16<6.1.132 | |
Linux Kernel | >=6.2<6.6.85 | |
Linux Kernel | >=6.7<6.12.21 | |
Linux Kernel | >=6.13<6.13.9 | |
Linux Kernel | =6.14-rc1 | |
Linux Kernel | =6.14-rc2 | |
Linux Kernel | =6.14-rc3 | |
Linux Kernel | =6.14-rc4 | |
Linux Kernel | =6.14-rc5 | |
Linux Kernel | =6.14-rc6 | |
Linux Kernel | =6.14-rc7 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-22005 is classified as a memory leak vulnerability in the Linux kernel.
CVE-2025-22005 affects the Linux Kernel, specifically versions that utilize the ipv6 functionality.
To remediate CVE-2025-22005, update to the latest stable version of the Linux kernel that includes the patch.
CVE-2025-22005 impacts the memory management in the ipv6 module of the Linux kernel.
Yes, CVE-2025-22005 can potentially lead to memory leaks that might affect system performance and stability.