CVE-2025-38587 ipv6: fix possible infinite loop in fib6_info_uses_dev()

Medium 5.5 Published Updated

A flaw in the Linux kernel IPv6 routing code can cause an infinite loop, leading to a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38587?

CVE-2025-38587 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 19 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

ipv6: fix possible infinite loop in fib6_info_uses_dev()

fib6_info_uses_dev() seems to rely on RCU without an explicit protection.

Like the prior fix in rt6_nlmsg_size(), we need to make sure fib6_del_route() or fib6_add_rt2node() have not removed the anchor from the list, or we risk an infinite loop.

Weakness: CWE-835

Which versions are affected by CVE-2025-38587?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38587?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-38587 being exploited?

There is no known exploitation of CVE-2025-38587 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-38587, DEBIAN-CVE-2025-38587, GHSA-3g8c-3p92-rjwr, ROOT-OS-DEBIAN-12-CVE-2025-38587, ROOT-OS-DEBIAN-13-CVE-2025-38587, ROOT-OS-UBUNTU-2404-CVE-2025-38587 and 1 more.

Is CVE-2025-38587 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free