CVE-2025-22005
ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().
Mitigation
- Upgrade Linux to 9740890ee20e01f99ff1dde84c63dcf089fabb98 or later.
Who should check
- Anyone running Linux >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 77c41cdbe6bce476e08d3251c0d501feaf10a9f3; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 119dcafe36795a15ae53351cbbd6177aaf94ffef; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 29d91820184d5cbc70f3246d4911d96eaeb930d6; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < d3d5b4b5ae263c3225db363ba08b937e2e2b0380; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 9740890ee20e01f99ff1dde84c63dcf089fabb98
- Anyone running Linux 5.3
Vulnerability facts
- Affected
- Linux >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 77c41cdbe6bce476e08d3251c0d501feaf10a9f3; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 119dcafe36795a15ae53351cbbd6177aaf94ffef; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 29d91820184d5cbc70f3246d4911d96eaeb930d6; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < d3d5b4b5ae263c3225db363ba08b937e2e2b0380; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 9740890ee20e01f99ff1dde84c63dcf089fabb98; Linux 5.3
- Fixed in
- Linux 16267a5036173d0173377545b4b6021b081d0933, Linux 1bd12dfc058e1e68759d313d7727d68dbc1b8964, Linux 596a883c4ce2d2e9c175f25b98fed3a1f33fea38, Linux 77c41cdbe6bce476e08d3251c0d501feaf10a9f3, Linux 119dcafe36795a15ae53351cbbd6177aaf94ffef, Linux 29d91820184d5cbc70f3246d4911d96eaeb930d6, Linux 9740890ee20e01f99ff1dde84c63dcf089fabb98
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw(). fib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything when it fails. Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6_nh") moved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init() but forgot to add cleanup for fib6_nh->nh_common.nhc_pcpu_rth_output in case it fails to allocate fib6_nh->rt6i_pcpu, resulting in memleak. Let's call fib_nh_common_release() and clear nhc_pcpu_rth_output in the error path. Note that we can remove the fib6_nh_release() call in nh_create_ipv6() later in net-next.git.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 77c41cdbe6bce476e08d3251c0d501feaf10a9f3; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 119dcafe36795a15ae53351cbbd6177aaf94ffef; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 29d91820184d5cbc70f3246d4911d96eaeb930d6; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < d3d5b4b5ae263c3225db363ba08b937e2e2b0380; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 9740890ee20e01f99ff1dde84c63dcf089fabb98 | — | cvelist |
| Linux | 5.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-22005. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22005.md Affected: Linux >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42… Fixed in: Linux 16267a5036173d0173377545b4b6021b081d0933, Linux 1bd12dfc058e1e68759d313d7727d68dbc1b8964, Linux 596a883c4ce2d2e9c175f25b98fed3a1f33fea38, Linux 77c41cdbe6bce476e08d3251c0d501feaf10a9f3, Linux 119dcafe36795a15ae53351cbbd6177aaf94ffef, Linux 29d91820184d5cbc70f3246d4911d96eaeb930d6, Linux 97408… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/16267a5036173d0173377545b4b6021b081d0933
- https://git.kernel.org/stable/c/1bd12dfc058e1e68759d313d7727d68dbc1b8964
- https://git.kernel.org/stable/c/596a883c4ce2d2e9c175f25b98fed3a1f33fea38
- https://git.kernel.org/stable/c/77c41cdbe6bce476e08d3251c0d501feaf10a9f3
- https://git.kernel.org/stable/c/119dcafe36795a15ae53351cbbd6177aaf94ffef
- https://git.kernel.org/stable/c/29d91820184d5cbc70f3246d4911d96eaeb930d6
- https://git.kernel.org/stable/c/d3d5b4b5ae263c3225db363ba08b937e2e2b0380
- https://git.kernel.org/stable/c/9740890ee20e01f99ff1dde84c63dcf089fabb98
FAQ
Is CVE-2025-22005 being exploited?
There is no confirmed exploitation: CVE-2025-22005 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22005?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-22005?
Linux >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 16267a5036173d0173377545b4b6021b081d0933; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 1bd12dfc058e1e68759d313d7727d68dbc1b8964; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 596a883c4ce2d2e9c175f25b98fed3a1f33fea38; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 77c41cdbe6bce476e08d3251c0d501feaf10a9f3; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 119dcafe36795a15ae53351cbbd6177aaf94ffef; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 29d91820184d5cbc70f3246d4911d96eaeb930d6; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < d3d5b4b5ae263c3225db363ba08b937e2e2b0380; >= 7dd73168e273938b9e9bb42ca51b0c27d807992b, < 9740890ee20e01f99ff1dde84c63dcf089fabb98; Linux 5.3.
Is there a fix for CVE-2025-22005?
Yes. Fixed in Linux 16267a5036173d0173377545b4b6021b081d0933, Linux 1bd12dfc058e1e68759d313d7727d68dbc1b8964, Linux 596a883c4ce2d2e9c175f25b98fed3a1f33fea38, Linux 77c41cdbe6bce476e08d3251c0d501feaf10a9f3, Linux 119dcafe36795a15ae53351cbbd6177aaf94ffef, Linux 29d91820184d5cbc70f3246d4911d96eaeb930d6, Linux 9740890ee20e01f99ff1dde84c63dcf089fabb98. Upgrade Linux to 9740890ee20e01f99ff1dde84c63dcf089fabb98 or later.
How do I check if I'm affected by CVE-2025-22005?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.