{"id":"CVE-2025-22057","summary":"net: decrease cached dst counters in dst_release","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: decrease cached dst counters in dst_release\n\nUpstream fix ac888d58869b (\"net: do not delay dst_entries_add() in\ndst_release()\") moved decrementing the dst count from dst_destroy to\ndst_release to avoid accessing already freed data in case of netns\ndismantle. However in case CONFIG_DST_CACHE is enabled and OvS+tunnels\nare used, this fix is incomplete as the same issue will be seen for\ncached dsts:\n\n  Unable to handle kernel paging request at virtual address ffff5aabf6b5c000\n  Call trace:\n   percpu_counter_add_batch+0x3c/0x160 (P)\n   dst_release+0xec/0x108\n   dst_cache_destroy+0x68/0xd8\n   dst_destroy+0x13c/0x168\n   dst_destroy_rcu+0x1c/0xb0\n   rcu_do_batch+0x18c/0x7d0\n   rcu_core+0x174/0x378\n   rcu_core_si+0x18/0x30\n\nFix this by invalidating the cache, and thus decrementing cached dst\ncounters, in dst_release too.","modified":"2026-03-20T12:41:18.228752Z","published":"2025-04-16T14:12:14.234Z","related":["MGASA-2025-0142","MGASA-2025-0146","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01965-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:01972-1","SUSE-SU-2025:02000-1","SUSE-SU-2025:20408-1","SUSE-SU-2025:20413-1","SUSE-SU-2025:20419-1","SUSE-SU-2025:20421-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22057.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a0a3ff6593d670af2451ec363ccb7b18aec0c0a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/836415a8405c9665ae55352fc5ba865c242f5e4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92a5c18513117be69bc00419dd1724c1940f8fcd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ccc331fd5bcae131d2627d5ef099d4a1f6540aea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e833e7ad64eb2f63867f65303be49ca30ee8819e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22057.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22057"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8"},{"fixed":"ccc331fd5bcae131d2627d5ef099d4a1f6540aea"},{"fixed":"92a5c18513117be69bc00419dd1724c1940f8fcd"},{"fixed":"836415a8405c9665ae55352fc5ba865c242f5e4f"},{"fixed":"e833e7ad64eb2f63867f65303be49ca30ee8819e"},{"fixed":"3a0a3ff6593d670af2451ec363ccb7b18aec0c0a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22057.json"}}],"schema_version":"1.7.5"}