# CVE-2025-22057: net: decrease cached dst counters in dst\_release

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-04-16T14:12:14.234Z
- **Modified:** 2026-10-30T13:17:56.273Z

## Who should check

- Anyone running Linux \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 973bb0bc6240b55e313248ef3c6aa551ab7bb735; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< ccc331fd5bcae131d2627d5ef099d4a1f6540aea; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 92a5c18513117be69bc00419dd1724c1940f8fcd; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 836415a8405c9665ae55352fc5ba865c242f5e4f; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< e833e7ad64eb2f63867f65303be49ca30ee8819e; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a
- Anyone running Linux 4.6

## Description

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

net: decrease cached dst counters in dst\_release

Upstream fix ac888d58869b ("net: do not delay dst\_entries\_add() in
dst\_release()") moved decrementing the dst count from dst\_destroy to
dst\_release to avoid accessing already freed data in case of netns
dismantle. However in case CONFIG\_DST\_CACHE is enabled and OvS+tunnels
are used, this fix is incomplete as the same issue will be seen for
cached dsts:

  Unable to handle kernel paging request at virtual address ffff5aabf6b5c000
  Call trace:
   percpu\_counter\_add\_batch+0x3c/0x160 (P)
   dst\_release+0xec/0x108
   dst\_cache\_destroy+0x68/0xd8
   dst\_destroy+0x13c/0x168
   dst\_destroy\_rcu+0x1c/0xb0
   rcu\_do\_batch+0x18c/0x7d0
   rcu\_core+0x174/0x378
   rcu\_core\_si+0x18/0x30

Fix this by invalidating the cache, and thus decrementing cached dst
counters, in dst\_release too.

## Affected and fixed versions

- Linux: \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 973bb0bc6240b55e313248ef3c6aa551ab7bb735; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< ccc331fd5bcae131d2627d5ef099d4a1f6540aea; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 92a5c18513117be69bc00419dd1724c1940f8fcd; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 836415a8405c9665ae55352fc5ba865c242f5e4f; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< e833e7ad64eb2f63867f65303be49ca30ee8819e; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22057. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22057.md
Affected: Linux >= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, < 973bb0bc6240b55e313248ef3c6aa551ab7bb735; >= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, < ccc331fd5bcae131d2627d5ef099d4a1f6540aea; >= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, < 92a5c18513117be69bc00419dd1724c1940f8fcd; >= d71785ffc7e7cae3fbdc4ea…
Fixed in: Linux 973bb0bc6240b55e313248ef3c6aa551ab7bb735, Linux 92a5c18513117be69bc00419dd1724c1940f8fcd, Linux 836415a8405c9665ae55352fc5ba865c242f5e4f, Linux 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a

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.
```

## FAQ

### Is CVE-2025-22057 being exploited?

There is no confirmed exploitation: CVE-2025-22057 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22057?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22057?

Linux \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 973bb0bc6240b55e313248ef3c6aa551ab7bb735; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< ccc331fd5bcae131d2627d5ef099d4a1f6540aea; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 92a5c18513117be69bc00419dd1724c1940f8fcd; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 836415a8405c9665ae55352fc5ba865c242f5e4f; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< e833e7ad64eb2f63867f65303be49ca30ee8819e; \>= d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, \< 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a; Linux 4.6.

### Is there a fix for CVE-2025-22057?

Yes. Fixed in Linux 973bb0bc6240b55e313248ef3c6aa551ab7bb735, Linux 92a5c18513117be69bc00419dd1724c1940f8fcd, Linux 836415a8405c9665ae55352fc5ba865c242f5e4f, Linux 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a. Upgrade Linux to 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a or later.

### How do I check if I'm affected by CVE-2025-22057?

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.

## References

- patch: <https://git.kernel.org/stable/c/ccc331fd5bcae131d2627d5ef099d4a1f6540aea>
- patch: <https://git.kernel.org/stable/c/92a5c18513117be69bc00419dd1724c1940f8fcd>
- patch: <https://git.kernel.org/stable/c/836415a8405c9665ae55352fc5ba865c242f5e4f>
- patch: <https://git.kernel.org/stable/c/e833e7ad64eb2f63867f65303be49ca30ee8819e>
- patch: <https://git.kernel.org/stable/c/3a0a3ff6593d670af2451ec363ccb7b18aec0c0a>
- other: <https://git.kernel.org/stable/c/973bb0bc6240b55e313248ef3c6aa551ab7bb735>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22057>

HTML: <https://flawdb.com/CVE-2025-22057> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22057>
