9.8

CVE-2026-99078

net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry

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

net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry

With AF_XDP on a striding RQ, mlx5e defers releasing XSK buffers until
an MPWQE is refilled. If XSK allocation then returns -ENOMEM,
actual_wq_head is not advanced and a later NAPI poll retries the same
WQE.

mlx5e_free_rx_mpwqe() leaves each released slot marked as releasable. On
retry it can therefore call xsk_buff_free() again through stale pointers
after the frames have returned to the XSK pool and been reallocated.

Set all skip_release_bitmap bits in the common error path of
mlx5e_xsk_alloc_rx_mpwqe(). This matches mlx5e_alloc_rx_mpwqe(). A
successful allocation already clears the bitmap after replacing every
buffer, so retries become idempotent without changing the success path.

Fault injection forced three consecutive failures for one selected MPWQE.
Both an early allocation failure and a partial 8-of-16-buffer unwind
released the original 16 XSK buffers only once. Each error left a full
bitmap, the following NAPI retry skipped the release, and a later
successful allocation cleared it. A 20-second AF_XDP zero-copy pressure
run exercised 1,575,262 buffer allocation failures without invalid
descriptors, WQE errors, or kernel warnings.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 4c2a1323680709078736a2886c754004e9fe42e6
Version < f3a52e2ec2788a7f6b64137985c087188a54ad4f
Status affected
Version 4c2a1323680709078736a2886c754004e9fe42e6
Version < d215d09606b0fcd18ad1eb532995782a21cea49d
Status affected
Version 4c2a1323680709078736a2886c754004e9fe42e6
Version < 867119b4b588037724b85839d534465f0334d9bd
Status affected
Version 4c2a1323680709078736a2886c754004e9fe42e6
Version < 3d73a1164a8c6b4461907a65cb6c022ea4fd39af
Status affected
Version 4c2a1323680709078736a2886c754004e9fe42e6
Version < 63811edf512584c946e5e96b100e9e280703bbb5
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 6.4
Status affected
Version 0
Version < 6.4
Status unaffected
Version <= 6.6.*
Version 6.6.160
Status unaffected
Version <= 6.12.*
Version 6.12.113
Status unaffected
Version <= 6.18.*
Version 6.18.57
Status unaffected
Version <= 7.2.*
Version 7.2.11
Status unaffected
Version <= *
Version 7.3
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.46% 0.393
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 9.8 3.9 5.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/f3a52e2ec2788a7f6b64137985c087188a54ad4f
https://git.kernel.org/stable/c/d215d09606b0fcd18ad1eb532995782a21cea49d
https://git.kernel.org/stable/c/867119b4b588037724b85839d534465f0334d9bd
https://git.kernel.org/stable/c/3d73a1164a8c6b4461907a65cb6c022ea4fd39af
https://git.kernel.org/stable/c/63811edf512584c946e5e96b100e9e280703bbb5