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

net: mana: restore the XDP program pointer when pre-allocation fails

mana_xdp_set() publishes the new program into apc->bpf_prog before it
allocates anything, because mana_pre_alloc_rxbufs() sizes the buffers
from it via mana_get_rxbuf_cfg(). When that allocation fails the
function returns the error directly, skipping the err_dealloc_rxbuffs
label which is the only place that restores the previous pointer.

The attach is reported as failed, so the BPF core drops the reference it
held for the caller and the program can be freed, while apc->bpf_prog
still points at it. The next consumer of mana_xdp_get() - typically
mana_chn_setxdp() from mana_alloc_queues() on the following ifup, or
after a TX timeout reset - then calls bpf_prog_add() on freed memory.

This is reachable from an ordinary "ip link set dev ethX xdp obj ..."
whenever the per-queue RX buffer pre-allocation cannot be satisfied.

Restore the previous program on that error path.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Use‑After‑Free that may lead to kernel crash or arbitrary code execution
Action: Apply patch
AI Analysis

Impact

The Linux kernel contains a flaw in the mana network driver. When an XDP program is attached to an interface, the driver publishes the program before allocating per‑queue buffers. If buffer allocation fails, the error path bypasses the cleanup that would restore the previous program pointer. As a result, the pointer held in apc->bpf_prog refers to memory that has already been freed. Subsequent calls to bpf_prog_add on that stale pointer can corrupt the kernel, leading to a crash or giving an attacker the ability to execute code with kernel privileges. The bug is a classic use‑after‑free that directly impacts the integrity and availability of the system.

Affected Systems

All Linux kernel versions that contain the mana driver before the fix are affected. The vulnerability is present in the mainline kernel and would impact any node that enables XDP programs on network interfaces using the mana driver. No specific release date or kernel version was listed, so until the patch is applied, any affected system remains in risk.

Risk and Exploitability

The EPSS score is not available and the vulnerability has not been listed in CISA’s KEV catalog, but a missing program pointer restoration is a high‑severity use‑after‑free. Because the attacker would need root or become root by exploiting the bug, the primary attack vector is local privilege escalation or denial of service. The absence of a listed exploit does not reduce the theoretical risk; kernel corruption could still occur from an internal attacker or via malicious traffic when XDP is bound. Administrators should treat the flaw as a high priority.

Generated by OpenCVE AI on September 25, 2026 at 14:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that incorporates the commit fixing the mana driver XDP pointer restoration.
  • If an immediate kernel upgrade is not feasible, avoid attaching XDP programs to interfaces that may experience buffer allocation failures, or monitor the kernel logs for allocation errors and disable XDP on the affected device.
  • Apply any downstream patch releases or backports that implement the same logic—consult the vendor’s security advisories for the specific patch level.

Generated by OpenCVE AI on September 25, 2026 at 14:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: mana: restore the XDP program pointer when pre-allocation fails mana_xdp_set() publishes the new program into apc->bpf_prog before it allocates anything, because mana_pre_alloc_rxbufs() sizes the buffers from it via mana_get_rxbuf_cfg(). When that allocation fails the function returns the error directly, skipping the err_dealloc_rxbuffs label which is the only place that restores the previous pointer. The attach is reported as failed, so the BPF core drops the reference it held for the caller and the program can be freed, while apc->bpf_prog still points at it. The next consumer of mana_xdp_get() - typically mana_chn_setxdp() from mana_alloc_queues() on the following ifup, or after a TX timeout reset - then calls bpf_prog_add() on freed memory. This is reachable from an ordinary "ip link set dev ethX xdp obj ..." whenever the per-queue RX buffer pre-allocation cannot be satisfied. Restore the previous program on that error path.
Title net: mana: restore the XDP program pointer when pre-allocation fails
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-09-25T10:23:01.968Z

Reserved: 2026-09-25T10:18:58.205Z

Link: CVE-2026-97955

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:23.147

Modified: 2026-09-25T11:17:23.147

Link: CVE-2026-97955

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T15:00:20Z

Weaknesses