CVE-2026-80613: veth: fix NAPI leak in XDP enable error path

Published Aug 28, 2026
·
Updated

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 xdprxqinforeg() or xdprxqinforegmemmodel() 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 netifnapideli() for rq[i].xdpnapi.

Since netifnapiadd() was already called for index 'i', this leaves a dangling napistruct in the device's napilist. 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.

Affected Software

1 affected component
Linux Kernel

Event History

Aug 28, 2026
CVE Published
via MITRE·06:48 AM
Data Sourced
via MITRE·06:48 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the use-after-free?

XDP enablement on a veth device must enter an error path because xdp_rxq_info_reg() or xdp_rxq_info_reg_mem_model() fails. The affected veth device must then later be destroyed, causing teardown to traverse a NAPI list containing a dangling entry.

2

What happens if the vulnerable error path is reached?

The failed XDP setup leaves a napi_struct associated with the veth device after its queue memory is freed. If that memory is reallocated before device teardown, iteration of the stale NAPI entry can corrupt the reallocated memory and lead to a use-after-free.

3

Is normal successful XDP enablement affected?

The described issue is specifically in rollback after XDP enablement fails during receive-queue registration or memory-model registration. The provided information does not indicate that a successful XDP enablement path triggers the leak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203