# CVE-2026-64580: xfrm6: clear dst.dev on error to avoid double netdev\_put in xfrm6\_fill\_dst()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-05 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-64580, DEBIAN-CVE-2026-64580
- Record: https://cvemate.com/vulnerability/CVE-2026-64580 · JSON: https://cvemate.com/vulnerability/CVE-2026-64580/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()

On the error path where in6_dev_get(dev) returns NULL, xfrm6_fill_dst()
releases the device reference with netdev_put() but leaves
xdst->u.dst.dev set. dst_destroy() later calls netdev_put(dst->dev)
again, so the same net_device reference is released twice, underflowing
its refcount (ref_tracker WARNING + "unregister_netdevice: waiting for
<dev> to become free").

Clear xdst->u.dst.dev after the netdev_put(), the same way the XFRM
device-offload paths xfrm_dev_state_add() and xfrm_dev_policy_add() in
net/xfrm/xfrm_device.c NULL ->dev when releasing the reference on error.

  ref_tracker: reference already released.
  ref_tracker: allocated in:
   xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:86)
   ...
   udpv6_sendmsg (net/ipv6/udp.c:1696)
   ...
  ref_tracker: freed in:
   xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:90)
   ...
  WARNING: lib/ref_tracker.c:322 at ref_tracker_free+0x58b/0x780
   dst_destroy (net/core/dst.c:115)
   rcu_core
   handle_softirqs
   ...
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.125%, percentile 2.347%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 173)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.101-1 \| \< 7.1.6-1
- debian linux-6.12 (Debian): \< 6.12.101-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-147.147 \| \< 7.0.0-38.38
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1067.70 \| \< 7.0.0-1014.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): \< 7.0.0-1014.14~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1067.70+fips1

## References (first 20 of 29)

- <https://git.kernel.org/stable/c/97e032e5733e49471fb73de117ea2ac1ac7c479a>
- <https://git.kernel.org/stable/c/df6856c2dda9187601d29b5fbd7a81b3b178cedf>
- <https://git.kernel.org/stable/c/43de8a49335e611adb271bbd52e84dfbc11fc185>
- <https://git.kernel.org/stable/c/ff636d7b7cba6dea82ecf580415ea57f2c1a11b6>
- <https://git.kernel.org/stable/c/e078da1b4e11390cff3201c19a9a1fe70c5b934f>
- <https://git.kernel.org/stable/c/136992de9bb91871084ae52d172610541c76e4d2>
- <https://ubuntu.com/security/CVE-2026-64580>
- <https://www.cve.org/CVERecord?id=CVE-2026-64580>
- <https://git.kernel.org/linus/136992de9bb91871084ae52d172610541c76e4d2>
- <https://ubuntu.com/security/notices/USN-8888-1>
- <https://ubuntu.com/security/notices/USN-8889-1>
- <https://ubuntu.com/security/notices/USN-8887-1>
- <https://ubuntu.com/security/notices/USN-8886-1>
- <https://ubuntu.com/security/notices/USN-8888-2>
- <https://ubuntu.com/security/notices/USN-8887-2>
- <https://ubuntu.com/security/notices/USN-8887-3>
- <https://security-tracker.debian.org/tracker/CVE-2026-64580>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-64580>
- <https://ubuntu.com/security/notices/USN-8917-1>
- <https://ubuntu.com/security/notices/USN-8918-1>

---

Data as of 2026-12-05T03:52:22.257Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
