CWE
401
Advisory Published
Updated

CVE-2025-22005: ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-22005?

    CVE-2025-22005 is classified as a memory leak vulnerability in the Linux kernel.

  • What software is affected by CVE-2025-22005?

    CVE-2025-22005 affects the Linux Kernel, specifically versions that utilize the ipv6 functionality.

  • How do I fix CVE-2025-22005?

    To remediate CVE-2025-22005, update to the latest stable version of the Linux kernel that includes the patch.

  • What does CVE-2025-22005 impact?

    CVE-2025-22005 impacts the memory management in the ipv6 module of the Linux kernel.

  • Can CVE-2025-22005 lead to system instability?

    Yes, CVE-2025-22005 can potentially lead to memory leaks that might affect system performance and stability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203