{"id":"CVE-2026-64580","published":"2026-08-05T08:09:34Z","modified":"2026-10-19T20:48:42Z","title":"xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()\n\nOn the error path where in6_dev_get(dev) returns NULL, xfrm6_fill_dst()\nreleases the device reference with netdev_put() but leaves\nxdst->u.dst.dev set. dst_destroy() later calls netdev_put(dst->dev)\nagain, so the same net_device reference is released twice, underflowing\nits refcount (ref_tracker WARNING + \"unregister_netdevice: waiting for\n<dev> to become free\").\n\nClear xdst->u.dst.dev after the netdev_put(), the same way the XFRM\ndevice-offload paths xfrm_dev_state_add() and xfrm_dev_policy_add() in\nnet/xfrm/xfrm_device.c NULL ->dev when releasing the reference on error.\n\n  ref_tracker: reference already released.\n  ref_tracker: allocated in:\n   xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:86)\n   ...\n   udpv6_sendmsg (net/ipv6/udp.c:1696)\n   ...\n  ref_tracker: freed in:\n   xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:90)\n   ...\n  WARNING: lib/ref_tracker.c:322 at ref_tracker_free+0x58b/0x780\n   dst_destroy (net/core/dst.c:115)\n   rcu_core\n   handle_softirqs\n   ...","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00125,"percentile":0.02249,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"references":[{"url":"https://git.kernel.org/stable/c/97e032e5733e49471fb73de117ea2ac1ac7c479a","tags":[]},{"url":"https://git.kernel.org/stable/c/df6856c2dda9187601d29b5fbd7a81b3b178cedf","tags":[]},{"url":"https://git.kernel.org/stable/c/43de8a49335e611adb271bbd52e84dfbc11fc185","tags":[]},{"url":"https://git.kernel.org/stable/c/ff636d7b7cba6dea82ecf580415ea57f2c1a11b6","tags":[]},{"url":"https://git.kernel.org/stable/c/e078da1b4e11390cff3201c19a9a1fe70c5b934f","tags":[]},{"url":"https://git.kernel.org/stable/c/136992de9bb91871084ae52d172610541c76e4d2","tags":[]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":0.45},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < 97e032e5733e49471fb73de117ea2ac1ac7c479a",">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < df6856c2dda9187601d29b5fbd7a81b3b178cedf",">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < 43de8a49335e611adb271bbd52e84dfbc11fc185",">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < ff636d7b7cba6dea82ecf580415ea57f2c1a11b6",">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < e078da1b4e11390cff3201c19a9a1fe70c5b934f",">= 84c4a9dfbf430861e7588d95ae3ff61535dca351, < 136992de9bb91871084ae52d172610541c76e4d2","a7e22d0c0e81dde129a51ee413644124f4b59954","01b0d887f67a388fb2a658ee2bdd74e5ba146818","a98124aac0b5adc5de8ae54f11322781cb4d85c3","e27b7bee743d921f037b1da6f071237345bef7c1"]},{"vendor":"Linux","product":"Linux","versions":["3.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:43:14.319059Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-53274","exploited":false,"provenance":"source"}}