CVE-2026-80613

veth: fix NAPI leak in XDP enable error path

State
Published
Severity
7.8 High
Published
Aug 28, 2026
Updated
Oct 16, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before fc51373345e7e6ea73da2650cb497309c50b077aAffected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before 4559770b2a241344d762719e674241fcc8528f02Affected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before 83090f5e7b54721d71875a6c224d2490b9e73050Affected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before d3eb258ad398cc9402bab3a5e730cd7c5b34efadAffected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before a9e6707322ef215d39d4655b176c094f45f0ab52Affected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before 4bd2e5dbe62334aae1182d0f0d260f334a49d739Affected
  • b02e5a0ebb172c8276cea3151942aac681f7a4a6 to before 6739027cb72da26890edd424c77080d187b2a92eAffected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.