Description
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
...
Published: 2026-08-05
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Double reference release leading to kernel crash
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s IPv6 XFRM code contains a flaw where, on an error path, the device reference is released once with netdev_put but the destination device pointer remains set in the data structure. When dst_destroy later attempts to release the same reference again, the reference counter underflows, producing a ref_tracker warning and potentially destabilizing the network stack.

Affected Systems

All builds of the Linux kernel that include the IPv6 XFRM implementation are affected. The vulnerability is listed for the generic Linux kernel product without version constraints, implying that any kernel using the xfrm6_fill_dst path in net/ipv6/xfrm6_policy.c is susceptible.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity for causing kernel instability. The EPSS score of < 1% suggests that exploitation is currently unlikely, and the vulnerability is not catalogued in CISA KEV. An attacker would need to trigger the specific error path—likely by sending crafted IPv6 traffic that causes in6_dev_get to return NULL—leading to a double net_device release and a possible kernel crash or denial of service. No privileged escalation or data exfiltration is implied; the impact is confined to kernel reliability.

Generated by OpenCVE AI on October 20, 2026 at 13:56 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that clears xdst->u.dst.dev on error in xfrm6_fill_dst()
  • Upgrade the system to a kernel version that includes the fix
  • If an immediate kernel upgrade is not possible, disable or restrict IPv6 XFRM processing to avoid the error path

Generated by OpenCVE AI on October 20, 2026 at 13:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DSA Debian DSA DSA-6415-1 linux security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
History

Mon, 19 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415

Sat, 17 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 16:45:00 +0000


Sat, 08 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Sat, 08 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Wed, 05 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Wed, 05 Aug 2026 08:15:00 +0000

Type Values Removed Values Added
Description 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 ...
Title xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T20:48:42.908Z

Reserved: 2026-07-19T15:36:31.798Z

Link: CVE-2026-64580

cve-icon Vulnrichment

Updated: 2026-10-16T15:43:14.903Z

cve-icon NVD

Status : Received

Published: 2026-08-05T08:16:38.027

Modified: 2026-10-19T21:17:48.170

Link: CVE-2026-64580

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T14:00:16Z

Weaknesses