CVE-2025-22057
net: decrease cached dst counters in dst_release
Check your servers for CVE-2025-22057
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22057 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before 973bb0bc6240b55e313248ef3c6aa551ab7bb735 affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before ccc331fd5bcae131d2627d5ef099d4a1f6540aea affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before 92a5c18513117be69bc00419dd1724c1940f8fcd affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before 836415a8405c9665ae55352fc5ba865c242f5e4f affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before e833e7ad64eb2f63867f65303be49ca30ee8819e affected from d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8, before 3a0a3ff6593d670af2451ec363ccb7b18aec0c0a
Other versions: unaffected
|
| Linux |
affected 4.6 unaffected before 4.6 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.87 up to and including 6.6.* unaffected from 6.12.23 up to and including 6.12.* unaffected from 6.13.11 up to and including 6.13.* unaffected from 6.14.2 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22057 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22057
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-22057
trivy image --scanners vuln IMAGE | grep CVE-2025-22057
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/973bb0bc6240b55e313248ef3c6aa551ab7bb735 git.kernel.org
- https://git.kernel.org/stable/c/ccc331fd5bcae131d2627d5ef099d4a1f6540aea git.kernel.org
- https://git.kernel.org/stable/c/92a5c18513117be69bc00419dd1724c1940f8fcd git.kernel.org
- https://git.kernel.org/stable/c/836415a8405c9665ae55352fc5ba865c242f5e4f git.kernel.org
- https://git.kernel.org/stable/c/e833e7ad64eb2f63867f65303be49ca30ee8819e git.kernel.org
- https://git.kernel.org/stable/c/3a0a3ff6593d670af2451ec363ccb7b18aec0c0a git.kernel.org
Source: the record CVE-2025-22057 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse