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

Published Apr 3, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ipv6: Fix memleak of nhcpcpurthoutput in fibchecknhv6gw().

fibchecknhv6gw() expects that fib6nhinit() cleans up everything when it fails.

Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6nh") moved fibnhcommoninit() before allocpercpugfp() within fib6nhinit() but forgot to add cleanup for fib6nh->nhcommon.nhcpcpurthoutput in case it fails to allocate fib6nh->rt6ipcpu, resulting in memleak.

Let's call fibnhcommonrelease() and clear nhcpcpurthoutput in the error path.

Note that we can remove the fib6nhrelease() call in nhcreateipv6() later in net-next.git.

Affected Software

14 affected components
Linux Linux Kernel
Linux Linux Kernel>=5.3<5.4.292
Linux Linux Kernel>=5.5<5.10.236
Linux Linux Kernel>=5.16<6.1.132
Linux Linux Kernel>=6.2<6.6.85
Linux Linux Kernel>=6.7<6.12.21
Linux Linux Kernel>=6.13<6.13.9
Linux Linux Kernel=6.14-rc1
Linux Linux Kernel=6.14-rc2
Linux Linux Kernel=6.14-rc3
Linux Linux Kernel=6.14-rc4
Linux Linux Kernel=6.14-rc5
Linux Linux Kernel=6.14-rc6
Linux Linux Kernel=6.14-rc7

Event History

Apr 3, 2025
CVE Published
via MITRE·07:19 AM
Data Sourced
via MITRE·07:19 AM
Description
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22005?

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

2

What software is affected by CVE-2025-22005?

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

3

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.

4

What does CVE-2025-22005 impact?

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

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203