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

veth: fix NAPI leak in XDP enable error path

During XDP enablement in veth, if xdp_rxq_info_reg() or
xdp_rxq_info_reg_mem_model() fails, the driver rolls back the changes.

However, the rollback loop:
for (i--; i >= start; i--) {

decrements the loop index 'i' before the first iteration. This
correctly skips unregistering the rxq for the failed index 'i' (as
registration failed or was already cleaned up), but it also
erroneously skips calling netif_napi_deli() for rq[i].xdp_napi.

Since netif_napi_add() was already called for index 'i', this leaves
a dangling napi_struct in the device's napi_list. When the veth
device is later destroyed, the freed queue memory (which contains the
leaked NAPI structure) can be reused.

The subsequent device teardown iterates the NAPI list and
corrupts the reallocated memory, leading to UAF.

Fix this by explicitly deleting the NAPI association for the failed
index 'i' before rolling back the successfully configured queues.
Published: 2026-08-28
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Use‑After‑Free leading to kernel memory corruption
Action: Patch Immediately
AI Analysis

Impact

The veth driver in the Linux kernel has a flaw that can cause a use‑after‑free of a napi_struct. When an XDP queue registration fails, the rollback loop incorrectly skips removing the NAPI handler that was previously added. The stray napi_struct remains in the device’s list and is later dereferenced during device teardown, corrupting kernel memory. This classic use‑after‑free weakness can lead to kernel crashes or privilege escalation if exploited.

Affected Systems

All Linux kernel releases that include the veth driver with XDP support and have not yet incorporated the patch. The advisory does not specify exact version ranges, so any kernel prior to the commit referenced by the patch is potentially vulnerable.

Risk and Exploitability

The EPSS score is reported as < 1%, indicating a very low practical likelihood of exploitation, while the CVSS score is 7.8 and it is not listed in CISA KEV. The likely attack vector is a local privileged operation that requires the ability to create or modify veth interfaces and load XDP programs (CAP_NET_ADMIN or root). Exploitation would require the attacker to trigger the XDP enable path on a vulnerable device; if successful, it could lead to kernel memory corruption or privilege escalation, but the exploitation conditions and low EPSS suggest a low overall risk.

Generated by OpenCVE AI on September 2, 2026 at 07:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the commit fixing the NAPI cleanup during XDP enable on veth devices
  • If a kernel update cannot be performed immediately, disable XDP on all veth interfaces and prevent XDP programs from being attached to those devices
  • Monitor system logs for XDP registration failures or NAPI errors and verify that no custom networking stack or container runtime re‑enables XDP on veth until the patch is in place

Generated by OpenCVE AI on September 2, 2026 at 07:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 06:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 02 Sep 2026 00:15:00 +0000

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

None

threat_severity

Moderate


Sat, 29 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 29 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 29 Aug 2026 06:45: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'}


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

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 28 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: veth: fix NAPI leak in XDP enable error path During XDP enablement in veth, if xdp_rxq_info_reg() or xdp_rxq_info_reg_mem_model() fails, the driver rolls back the changes. However, the rollback loop: for (i--; i >= start; i--) { decrements the loop index 'i' before the first iteration. This correctly skips unregistering the rxq for the failed index 'i' (as registration failed or was already cleaned up), but it also erroneously skips calling netif_napi_deli() for rq[i].xdp_napi. Since netif_napi_add() was already called for index 'i', this leaves a dangling napi_struct in the device's napi_list. When the veth device is later destroyed, the freed queue memory (which contains the leaked NAPI structure) can be reused. The subsequent device teardown iterates the NAPI list and corrupts the reallocated memory, leading to UAF. Fix this by explicitly deleting the NAPI association for the failed index 'i' before rolling back the successfully configured queues.
Title veth: fix NAPI leak in XDP enable error path
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-29T06:21:21.618Z

Reserved: 2026-08-26T14:34:25.773Z

Link: CVE-2026-80613

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T08:16:45.303

Modified: 2026-08-29T07:16:46.123

Link: CVE-2026-80613

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-80613 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T08:00:14Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference