{"id":"CVE-2025-22057","aliases":["CVE-2025-22057"],"related":[],"kind":"vulnerability","state":"published","title":"net: decrease cached dst counters in dst_release","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: disminuir los contadores dst en caché en dst_release La corrección ascendente ac888d58869b (\"net: no retrasar dst_entries_add() en dst_release()\") se movió y disminuyó el recuento dst de dst_destroy a dst_release para evitar acceder a datos ya liberados en caso de desmantelamiento de netns. Sin embargo, en caso de que CONFIG_DST_CACHE esté habilitado y se usen túneles OvS+, esta corrección está incompleta ya que se verá el mismo problema para los dst en caché: No se puede manejar la solicitud de paginación del núcleo en la dirección virtual ffff5aabf6b5c000 Rastreo de llamadas: 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 Corrija esto invalidando el caché y, por lo tanto, disminuyendo los contadores dst en caché. dst_release también.","source":"nvd"}],"published":"2025-04-16T14:12:14.234Z","modified":"2026-10-30T13:17:56.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"973bb0bc6240b55e313248ef3c6aa551ab7bb735","status":"affected"},{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"ccc331fd5bcae131d2627d5ef099d4a1f6540aea","status":"affected"},{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"92a5c18513117be69bc00419dd1724c1940f8fcd","status":"affected"},{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"836415a8405c9665ae55352fc5ba865c242f5e4f","status":"affected"},{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"e833e7ad64eb2f63867f65303be49ca30ee8819e","status":"affected"},{"type":"git","introduced":"d71785ffc7e7cae3fbdc4ea8a9d05b7a1c59f7b8","fixed":"3a0a3ff6593d670af2451ec363ccb7b18aec0c0a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.87","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.23","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.11","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.6","fixed":"6.6.87"},{"status":"affected","introduced":"6.7","fixed":"6.12.23"},{"status":"affected","introduced":"6.13","fixed":"6.13.11"},{"status":"affected","introduced":"6.14","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/973bb0bc6240b55e313248ef3c6aa551ab7bb735","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccc331fd5bcae131d2627d5ef099d4a1f6540aea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92a5c18513117be69bc00419dd1724c1940f8fcd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/836415a8405c9665ae55352fc5ba865c242f5e4f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e833e7ad64eb2f63867f65303be49ca30ee8819e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a0a3ff6593d670af2451ec363ccb7b18aec0c0a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:44:18.222Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22057","url":"https://www.cve.org/CVERecord?id=CVE-2025-22057","licence":"CVE Terms of Use","modified":"2026-10-30T12:21:11.424Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22057","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22057","licence":"Public domain","modified":"2026-10-30T13:17:56.273Z"}],"updatedAt":"2026-11-25T22:58:56.587Z","epss":{"score":0.00219,"percentile":0.13162,"date":"2026-12-01T12:00:22.000Z"}}