CVE-2025-71097
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12 | Amazon Linux | 1:6.12.64-87.122.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| perf | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.64-87.122.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.64-87.122.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.64-87.122.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.64-87.122.amzn2023 |
| kernel | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| linux_kernel | linux | 6.18.4, 6.12.64, 6.6.120, 6.1.160, 5.15.198, 5.10.248 |
| Linux | Linux | ac782f4e3bfcde145b8a7f8af31d9422d94d172a, 5.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e |
| Linux | Linux | 5.3, 0, 5.10.248 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel | 0 |
| Linux | Linux | 6.19, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e, 493ced1ac47c48bb86d9d4e8e87df8592be85a0e |
| linux | linux_kernel | 5.3, 5.3, 5.3 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIPLUS 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