CVE-2025-22005

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
03/04/2025
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().<br /> <br /> fib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything<br /> when it fails.<br /> <br /> Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6_nh")<br /> moved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init()<br /> but forgot to add cleanup for fib6_nh-&gt;nh_common.nhc_pcpu_rth_output in<br /> case it fails to allocate fib6_nh-&gt;rt6i_pcpu, resulting in memleak.<br /> <br /> Let&amp;#39;s call fib_nh_common_release() and clear nhc_pcpu_rth_output in the<br /> error path.<br /> <br /> Note that we can remove the fib6_nh_release() call in nh_create_ipv6()<br /> later in net-next.git.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.3 (including) 5.4.292 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.236 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.132 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.85 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.21 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 (including) 6.13.9 (excluding)
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:6.14:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:*