Description
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.
Published: 2026-10-23
Score: n/a
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability originates in the mlx5e driver of the Linux kernel, where the driver defers releasing XSK buffers until an MPWQE is refilled. If an XSK allocation fails, the driver does not advance the work queue head and a later NAPI poll retries the same WQE, resulting in the same buffers being freed twice through stale pointers. This double free can corrupt kernel memory and potentially allow an attacker with control over AF_XDP traffic on a Mellanox device to trigger a kernel crash or arbitrary code execution. The issue was exposed by fault injection that forced multiple allocation failures, demonstrating that the error path is not idempotent and can lead to invalid memory operations.

Affected Systems

All Linux kernel users whose systems load the mlx5e (Mellanox Ethernet) driver and use AF_XDP with a striding receive queue are affected. No specific kernel version range is listed, but the problem exists in any kernel build that includes the vulnerable code prior to the patch commit referenced in the advisory. Version information is not provided, so administrators should review the commit history and identify their kernel version.

Risk and Exploitability

The CVSS score is not provided, and no EPSS score is available, which indicates limited public data on exploitability. Because the flaw involves a double free in the driver, a successful exploitation could lead to denial of service or privilege escalation if an attacker can control AF_XDP traffic. The vulnerability is not listed in the CISA KEV catalog, suggesting no currently known exploitation campaigns. Consequently, the risk remains significant for exposed systems but limited to scenarios where an attacker can influence AF_XDP traffic on Mellanox network interfaces. Detailed exploitation would require repeated allocation failures and careful timing to trigger the double free, making it a difficult but potentially high‑impact attack.

Generated by OpenCVE AI on October 23, 2026 at 15:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the fix referenced in the commit history.
  • If an immediate patch is not available, ensure that AF_XDP is disabled or restricted to trusted users on Mellanox devices until the vulnerability is addressed.
  • Monitor the system for repeated allocation failures, kernel panics, or unusual NIC behavior that could indicate an exploitation attempt.

Generated by OpenCVE AI on October 23, 2026 at 15:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Fri, 23 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description 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.
Title net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
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-10-23T12:23:25.542Z

Reserved: 2026-09-25T10:25:14.389Z

Link: CVE-2026-99078

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:31.910

Modified: 2026-10-23T13:17:31.910

Link: CVE-2026-99078

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T15:45:16Z

Weaknesses