VDB

CVE-2025-71097

CVE-2025-71097 PUBLISHED

ipv4: Fix reference count leak when using error routes with nexthop objects

Reported by linux · Published January 13, 2026

In the Linux kernel, the following vulnerability has been resolved: ipv4: Fix reference count leak when using error routes with nexthop objects When a nexthop object is deleted, it is marked as dead and then fib_table_flush() is called to flush all the routes that are using the dead nexthop. The current logic in fib_table_flush() is to only flush error routes (e.g., blackhole) when it is called as part of network namespace dismantle (i.e., with flush_all=true). Therefore, error routes are not flushed when their nexthop object is deleted: # ip link add name dummy1 up type dummy # ip nexthop add id 1 dev dummy1 # ip route add 198.51.100.1/32 nhid 1 # ip route add blackhole 198.51.100.2/32 nhid 1 # ip nexthop del id 1 # ip route show blackhole 198.51.100.2 nhid 1 dev dummy1 As such, they keep holding a reference on the nexthop object which in turn holds a reference on the nexthop device, resulting in a reference count leak: # ip link del dev dummy1 [ 70.516258] unregister_netdevice: waiting for dummy1 to become free. Usage count = 2 Fix by flushing error routes when their nexthop is marked as dead. IPv6 does not suffer from this problem.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12Amazon Linux1:6.12.64-87.122.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.161-183.298.amzn2023
perfAmazon Linux1:6.1.161-183.298.amzn2023
kernel6.12-develAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.64-87.122.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.161-183.298.amzn2023
kernel-tools-develAmazon Linux1:6.1.161-183.298.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.64-87.122.amzn2023
kernelAmazon Linux1:6.1.161-183.298.amzn2023
linux_kernellinux6.18.4, 6.12.64, 6.6.120, 6.1.160, 5.15.198, 5.10.248
LinuxLinuxac782f4e3bfcde145b8a7f8af31d9422d94d172a, 5.3

Affected products

VendorProductVersions
LinuxLinux493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e
LinuxLinux5.3, 0, 5.10.248
amazon:2023kernel6.120
amazon:2023kernel-libbpf-devel0
amazon:2023perf0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-libbpf0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.6, 3.1.7
amazon:2023kernel-libbpf-static0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.7, 3.1.6
amazon:2023kernel-tools-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel0
LinuxLinux6.19, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e
linuxlinux_kernel5.3, 5.3, 5.3
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.6, 3.1.7
amazon:2023kernel-headers0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7, 3.1.6

…and 20 more

Timeline

  • Jan 13, 2026 CVE Published
  • Jan 14, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (132 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (138 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-71097
vulnetix vdb fixes CVE-2025-71097

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71097/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›