Description
In the Linux kernel, the following vulnerability has been resolved:

vhost/net: complete zerocopy ubufs only once

vhost-net initializes one ubuf_info per outstanding zerocopy TX
descriptor and hands it to the backend socket. The networking stack may
then clone a zerocopy skb before all skb references are released. For
example, batman-adv fragmentation reaches skb_split(), which calls
skb_zerocopy_clone() and increments the same ubuf_info refcount.

vhost_zerocopy_complete() currently treats every ubuf callback as a
completed vhost descriptor. It dereferences ubuf->ctx, writes the
descriptor completion state, and drops the vhost_net_ubuf_ref even when
the callback only releases a cloned skb reference. A backend reset can
therefore wait for and free the vhost_net_ubuf_ref while another cloned
skb still carries the same ubuf_info. A later completion then
dereferences the freed ubufs pointer.

KASAN reports the stale completion as:

BUG: KASAN: slab-use-after-free in vhost_zerocopy_complete+0x1d7/0x1f0
BUG: KASAN: slab-use-after-free in vhost_zerocopy_complete+0x101/0x1f0
vhost_zerocopy_complete
skb_copy_ubufs
__dev_forward_skb2
veth_xmit

The freed object was allocated from vhost_net_ioctl() while setting the
backend and freed through kfree_rcu()/kvfree_rcu_bulk after backend
removal, while delayed skb completion still reached
vhost_zerocopy_complete().

Honor the generic ubuf_info refcount before touching vhost state, and run
the vhost descriptor completion only for the final ubuf reference. This
matches the msg_zerocopy_complete() ownership rule for cloned zerocopy
skbs.
Published: 2026-08-15
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In kernel vhost-net, the completion routine treats every ubuf callback as a finished descriptor, decrementing the ubuf reference count even when only a cloned skb reference is released. A backend reset can free the shared ubuf_info while a cloned skb still references it, causing a stale dereference that triggers a use‑after‑free in vhost_zerocopy_complete. The vulnerability is a memory misuse classified as CWE‑825. Based on the description, this memory corruption could lead to a kernel panic or enable an attacker to execute code with kernel privileges. The impact is confined to kernel memory, allowing compromise of confidentiality, integrity, and availability of the affected system.

Affected Systems

Based on the description, it is inferred that all Linux kernel builds that include the vhost‑net zero‑copy backend are potentially affected. The advisory does not list specific kernel versions, so any kernel incorporating the vulnerable vhost‑net implementation prior to the fix is at risk.

Risk and Exploitability

The CVSS score of the vulnerability is 9.3, indicating a critical severity. The EPSS score is < 1%, showing a very low probability of exploitation at the time of this analysis, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves a virtualized environment that employs the vhost‑net zero‑copy path; a virtual machine or container communicating through a vhost interface could trigger the flaw when a backend reset occurs while a cloned skb is still pending. The required conditions include the presence of the vulnerable kernel, usage of zero‑copy networking, and a scenario where skb cloning such as batman‑adv fragmentation happens. Successful exploitation could lead to a kernel memory corruption that may result in a system crash or privilege escalation with kernel‑level access.

Generated by OpenCVE AI on August 22, 2026 at 00:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to the latest stable release that includes the vhost‑net zerocopy ubuf fix (commit 321c73b, 6445b945, etc.)
  • If a kernel update is not immediately possible, temporarily disable zero‑copy networking for vhost‑net, or modify the environment to avoid batman‑adv fragmentation or other skb cloning that triggers the flaw
  • Adjust or disable batman‑adv protocol or related fragmentation mechanisms on the host or guest to prevent skb cloning that could trigger the bug

Generated by OpenCVE AI on August 22, 2026 at 00:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Important


Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vhost/net: complete zerocopy ubufs only once vhost-net initializes one ubuf_info per outstanding zerocopy TX descriptor and hands it to the backend socket. The networking stack may then clone a zerocopy skb before all skb references are released. For example, batman-adv fragmentation reaches skb_split(), which calls skb_zerocopy_clone() and increments the same ubuf_info refcount. vhost_zerocopy_complete() currently treats every ubuf callback as a completed vhost descriptor. It dereferences ubuf->ctx, writes the descriptor completion state, and drops the vhost_net_ubuf_ref even when the callback only releases a cloned skb reference. A backend reset can therefore wait for and free the vhost_net_ubuf_ref while another cloned skb still carries the same ubuf_info. A later completion then dereferences the freed ubufs pointer. KASAN reports the stale completion as: BUG: KASAN: slab-use-after-free in vhost_zerocopy_complete+0x1d7/0x1f0 BUG: KASAN: slab-use-after-free in vhost_zerocopy_complete+0x101/0x1f0 vhost_zerocopy_complete skb_copy_ubufs __dev_forward_skb2 veth_xmit The freed object was allocated from vhost_net_ioctl() while setting the backend and freed through kfree_rcu()/kvfree_rcu_bulk after backend removal, while delayed skb completion still reached vhost_zerocopy_complete(). Honor the generic ubuf_info refcount before touching vhost state, and run the vhost descriptor completion only for the final ubuf reference. This matches the msg_zerocopy_complete() ownership rule for cloned zerocopy skbs.
Title vhost/net: complete zerocopy ubufs only once
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-08-17T05:45:42.723Z

Reserved: 2026-08-15T05:44:03.883Z

Link: CVE-2026-74310

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:30.987

Modified: 2026-08-17T06:19:25.200

Link: CVE-2026-74310

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74310 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T00:30:16Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference