# CVE-2025-38588: ipv6: prevent infinite loop in rt6\_nlmsg\_size()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2025-08-19T17:03:09.856Z
- **Modified:** 2026-11-05T22:17:19.843Z

## Who should check

- Anyone running Linux \>= d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2, \< 6d345136c9b875f065d226908a29c25cdf9343f8; \>= 52da02521ede55fb86546c3fffd9377b3261b91f, \< e1b7932af47f92432be8303d2439d1bf77b0be23; \>= 34a949e7a0869dfa31a40416d2a56973fae1807b, \< cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 3c13db3e47e170bab19e574404e7b6be45ea873d; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 54e6fe9dd3b0e7c481c2228782c9494d653546da; 11edcd026012ac18acee0f1514db3ed1b160fc6f; \>= 6.1.128, \< 6.1.148; \>= 6.6.75, \< 6.6.102; \>= 6.12.2, \< 6.12.42; …
- Anyone running Linux 6.13

## 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.

## Affected and fixed versions

- Linux: \>= d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2, \< 6d345136c9b875f065d226908a29c25cdf9343f8; \>= 52da02521ede55fb86546c3fffd9377b3261b91f, \< e1b7932af47f92432be8303d2439d1bf77b0be23; \>= 34a949e7a0869dfa31a40416d2a56973fae1807b, \< cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 3c13db3e47e170bab19e574404e7b6be45ea873d; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 54e6fe9dd3b0e7c481c2228782c9494d653546da; 11edcd026012ac18acee0f1514db3ed1b160fc6f; \>= 6.1.128, \< 6.1.148; \>= 6.6.75, \< 6.6.102; \>= 6.12.2, \< 6.12.42; … (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38588. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38588.md
Affected: Linux >= d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2, < 6d345136c9b875f065d226908a29c25cdf9343f8; >= 52da02521ede55fb86546c3fffd9377b3261b91f, < e1b7932af47f92432be8303d2439d1bf77b0be23; >= 34a949e7a0869dfa31a40416d2a56973fae1807b, < cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38; >= d9ccb18f83ea2bb654289b6…
Fixed in: Linux 6d345136c9b875f065d226908a29c25cdf9343f8, Linux 3c13db3e47e170bab19e574404e7b6be45ea873d, Linux 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab, Linux 54e6fe9dd3b0e7c481c2228782c9494d653546da, Linux 6.1.148, Linux 6.6.102, Linux 6.12.42

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38588 being exploited?

There is no confirmed exploitation: CVE-2025-38588 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38588?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38588?

Linux \>= d0ec61c9f3583b76aebdbb271f5c0d3fcccd48b2, \< 6d345136c9b875f065d226908a29c25cdf9343f8; \>= 52da02521ede55fb86546c3fffd9377b3261b91f, \< e1b7932af47f92432be8303d2439d1bf77b0be23; \>= 34a949e7a0869dfa31a40416d2a56973fae1807b, \< cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 3c13db3e47e170bab19e574404e7b6be45ea873d; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab; \>= d9ccb18f83ea2bb654289b6ecf014fd267cc988b, \< 54e6fe9dd3b0e7c481c2228782c9494d653546da; 11edcd026012ac18acee0f1514db3ed1b160fc6f; \>= 6.1.128, \< 6.1.148; \>= 6.6.75, \< 6.6.102; \>= 6.12.2, \< 6.12.42; …; Linux 6.13.

### Is there a fix for CVE-2025-38588?

Yes. Fixed in Linux 6d345136c9b875f065d226908a29c25cdf9343f8, Linux 3c13db3e47e170bab19e574404e7b6be45ea873d, Linux 46aeb66e9e54ed0d56c18615e1c3dbd502b327ab, Linux 54e6fe9dd3b0e7c481c2228782c9494d653546da, Linux 6.1.148, Linux 6.6.102, Linux 6.12.42. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38588?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6d345136c9b875f065d226908a29c25cdf9343f8>
- patch: <https://git.kernel.org/stable/c/e1b7932af47f92432be8303d2439d1bf77b0be23>
- patch: <https://git.kernel.org/stable/c/cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38>
- patch: <https://git.kernel.org/stable/c/3c13db3e47e170bab19e574404e7b6be45ea873d>
- patch: <https://git.kernel.org/stable/c/46aeb66e9e54ed0d56c18615e1c3dbd502b327ab>
- patch: <https://git.kernel.org/stable/c/54e6fe9dd3b0e7c481c2228782c9494d653546da>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38588>

HTML: <https://flawdb.com/CVE-2025-38588> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38588>
