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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-19 · Modified: 2026-11-05
- Aliases: SUSE-SU-2026:20271-1, SUSE-SU-2026:20272-1, SUSE-SU-2026:20273-1, SUSE-SU-2026:20274-1, SUSE-SU-2026:20275-1, SUSE-SU-2026:20276-1, SUSE-SU-2026:20386-1, SUSE-SU-2026:20387-1, SUSE-SU-2026:20388-1, SUSE-SU-2026:20389-1, SUSE-SU-2026:20390-1, SUSE-SU-2026:20391-1, UBUNTU-CVE-2025-38588, DEBIAN-CVE-2025-38588
- Record: https://cvemate.com/vulnerability/CVE-2025-38588 · JSON: https://cvemate.com/vulnerability/CVE-2025-38588/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.193%, percentile 9.371%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 138)

- debian linux (Debian): \< 6.1.148-1 \| \< 6.12.43-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 48)

- <https://git.kernel.org/stable/c/6d345136c9b875f065d226908a29c25cdf9343f8>
- <https://git.kernel.org/stable/c/e1b7932af47f92432be8303d2439d1bf77b0be23>
- <https://git.kernel.org/stable/c/cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38>
- <https://git.kernel.org/stable/c/3c13db3e47e170bab19e574404e7b6be45ea873d>
- <https://git.kernel.org/stable/c/46aeb66e9e54ed0d56c18615e1c3dbd502b327ab>
- <https://git.kernel.org/stable/c/54e6fe9dd3b0e7c481c2228782c9494d653546da>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620271-1/>
- <https://bugzilla.suse.com/1249241>
- <https://bugzilla.suse.com/1256928>
- <https://www.suse.com/security/cve/CVE-2025-38588>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620272-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620273-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620274-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620275-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620276-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620386-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620387-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620388-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620389-1/>

---

Data as of 2026-12-05T12:34:42.193Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
