PT-2026-98619 · Linux · Linux
CVE-2026-97955
·
Published
2026-09-25
·
Updated
2026-09-25
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linux