All vulnerabilities
CVE-2026-97955

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

Linux LinuxOperating systems
CVSS
NoneNot scored
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.17%Chance of exploitation activity in the next 30 days, higher than 5% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8Also 9801edfba8dfcdb1da3b0afccdf143e13d646b56, 4c46beb807efcc93f5899ebe1f5958248eb296c6CVE List
Published25 Sep 2026Updated 19 Oct 2026CVE List

What fixes it

  • 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8LinuxCVE List
  • 9801edfba8dfcdb1da3b0afccdf143e13d646b56LinuxCVE List
  • 4c46beb807efcc93f5899ebe1f5958248eb296c6LinuxCVE List

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 8

  • Linuxaffected: 730ff06d3f5cc2ce0348414b78c10528b767d4a3 before 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8CVE List
  • Linuxaffected: 730ff06d3f5cc2ce0348414b78c10528b767d4a3 before 9801edfba8dfcdb1da3b0afccdf143e13d646b56CVE List
  • Linuxaffected: 730ff06d3f5cc2ce0348414b78c10528b767d4a3 before 4c46beb807efcc93f5899ebe1f5958248eb296c6CVE List
  • Linuxaffected: 6.18CVE List
  • Linuxunaffected: all versions before 6.18CVE List
  • Linuxunaffected: 6.18.53 through 6.18.*CVE List
  • Linuxunaffected: 7.2.7 through 7.2.*CVE List
  • Linuxunaffected: 7.3CVE List

References 3