CVE-2025-38588
ipv6: prevent infinite loop in rt6_nlmsg_size()
Check your servers for CVE-2025-38588
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38588 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ipv6: prevent infinite loop in rt6_nlmsg_size()
While testing prior patch, I was able to trigger an infinite loop in rt6_nlmsg_size() in the following place:
list_for_each_entry_rcu(sibling, &f6i->fib6_siblings, fib6_siblings) { rt6_nh_nlmsg_size(sibling->fib6_nh, &nexthop_len); }
This is because fib6_del_route() and fib6_add_rt2node() uses list_del_rcu(), 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.
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.39% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2, before 6d345136c9b875f065d226908a29c25cdf9343f8 affected from 52da02521ede55fb86546c3fffd9377b3261b91f, before e1b7932af47f92432be8303d2439d1bf77b0be23 affected from 34a949e7a0869dfa31a40416d2a56973fae1807b, before cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38 affected from d9ccb18f83ea2bb654289b6ecf014fd267cc988b, before 3c13db3e47e170bab19e574404e7b6be45ea873d affected from d9ccb18f83ea2bb654289b6ecf014fd267cc988b, before 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab affected from d9ccb18f83ea2bb654289b6ecf014fd267cc988b, before 54e6fe9dd3b0e7c481c2228782c9494d653546da affected 11edcd026012ac18acee0f1514db3ed1b160fc6f affected from 6.1.128, before 6.1.148 affected from 6.6.75, before 6.6.102 affected from 6.12.2, before 6.12.42 affected from 6.11.11, before 6.12
Other versions: unaffected
|
| Linux |
affected 6.13 unaffected before 6.13 unaffected from 6.1.148 up to and including 6.1.* unaffected from 6.6.102 up to and including 6.6.* unaffected from 6.12.42 up to and including 6.12.* unaffected from 6.15.10 up to and including 6.15.* unaffected from 6.16.1 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38588 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38588
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38588
trivy image --scanners vuln IMAGE | grep CVE-2025-38588
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/6d345136c9b875f065d226908a29c25cdf9343f8 git.kernel.org
- https://git.kernel.org/stable/c/e1b7932af47f92432be8303d2439d1bf77b0be23 git.kernel.org
- https://git.kernel.org/stable/c/cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38 git.kernel.org
- https://git.kernel.org/stable/c/3c13db3e47e170bab19e574404e7b6be45ea873d git.kernel.org
- https://git.kernel.org/stable/c/46aeb66e9e54ed0d56c18615e1c3dbd502b327ab git.kernel.org
- https://git.kernel.org/stable/c/54e6fe9dd3b0e7c481c2228782c9494d653546da git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
Source: the record CVE-2025-38588 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse