VDB

CVE-2025-22057

CVE-2025-22057 PUBLISHED CVSS 7.8 HIGH

net: decrease cached dst counters in dst_release

Reported by linux · Published April 16, 2025

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.

Fixed versions

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

PackageEcosystemFixed in
LinuxLinux92a5c18513117be69bc00419dd1724c1940f8fcd, 4.6

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxd71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8
LinuxLinux4.6, 0, 6.1.191
LinuxLinux*, *, *
amazon:2023kernel-libbpf-devel0
amazon:2023perf6.120
amazon:2023kernel-tools-devel0
amazon:2023kernel-headers0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023kernel-tools0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.12.23-29.970
amazon:2023python3-perf6.120
amazon:2023kernel-modules-extra-common0
linuxlinux_kernel4.6, 4.6, 4.6
amazon:2023bpftool0
amazon:2023kernel6.120

Timeline

  • Apr 16, 2025 CVE Published
  • Apr 17, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 23, 2025 Coalition ESS Score (17 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (316 in total, the first dated here)
  • Apr 20, 2026 Distribution Patch (309 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-22057
vulnetix vdb fixes CVE-2025-22057

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-22057/fixes/registry"

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

References

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