CVE-2025-71097: Linux Kernel - Resource Leak
- Cve: CVE-2025-71097
- Name: Linux Kernel - Resource Leak
- Description: 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.
- Impact: Attackers can cause resource leaks leading to potential denial of service by preventing device cleanup.
- Remediation: Update to the latest Linux kernel version containing the fix for nexthop error route flushing.
- Vulnerability impact: denial_of_service
- Requirements: Attacker must delete nexthop objects associated with error routes
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.0014
- Epss percentile: 0.03363
- Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- Published at: 2026-01-13T16:16:09Z
- Age in days: 315
- Modified at: 2026-11-10T13:18:05Z
- Patch available: yes
- References total: 9
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-71097
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
| CWE-401 | Missing Release of Memory after Effective Lifetime |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | = 6.19 rc8; = 6.19 rc7; = 6.19 rc1; = 6.19 rc2; = 6.19 rc3; = 6.19 rc4; = 6.19 rc5; = 6.19 rc6; >= 6.13, < 6.18.4; >= 6.7, < 6.12.64; >= 6.2, < 6.6.120; >= 5.16, < 6.1.160; >= 5.11, < 5.15.198; >= 5.3.1, < 5.10.248; = 5.3 | no | nvd | /v1/products/linux/linux_kernel |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | cna_commit, commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 9997488
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports