CVE-2025-38588

Source
https://cve.org/CVERecord?id=CVE-2025-38588
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38588.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38588
Downstream
Related
Published
2025-08-19T17:03:09.856Z
Modified
2026-05-07T04:16:08.904080Z
Summary
ipv6: prevent infinite loop in rt6_nlmsg_size()
Details

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

ipv6: prevent infinite loop in rt6nlmsgsize()

While testing prior patch, I was able to trigger an infinite loop in rt6nlmsgsize() in the following place:

listforeachentryrcu(sibling, &f6i->fib6siblings, fib6siblings) { rt6nhnlmsgsize(sibling->fib6nh, &nexthop_len); }

This is because fib6delroute() and fib6addrt2node() uses listdelrcu(), which can confuse rcu readers, because they might no longer see the head of the list.

Restart the loop if f6i->fib6_nsiblings is zero.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38588.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2
Fixed
6d345136c9b875f065d226908a29c25cdf9343f8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
52da02521ede55fb86546c3fffd9377b3261b91f
Fixed
e1b7932af47f92432be8303d2439d1bf77b0be23
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
34a949e7a0869dfa31a40416d2a56973fae1807b
Fixed
cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9ccb18f83ea2bb654289b6ecf014fd267cc988b
Fixed
3c13db3e47e170bab19e574404e7b6be45ea873d
Fixed
46aeb66e9e54ed0d56c18615e1c3dbd502b327ab
Fixed
54e6fe9dd3b0e7c481c2228782c9494d653546da
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
11edcd026012ac18acee0f1514db3ed1b160fc6f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38588.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.148
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.102
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.42
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.10
Fixed
6.16.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38588.json"