# CVE-2026-97955: net: mana: restore the XDP program pointer when pre-allocation fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-25T10:23:01.968Z
- **Modified:** 2026-10-19T10:17:46.807Z

## Who should check

- Anyone running Linux \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 9801edfba8dfcdb1da3b0afccdf143e13d646b56; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 4c46beb807efcc93f5899ebe1f5958248eb296c6
- Anyone running Linux 6.18

## 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.

## Affected and fixed versions

- Linux: \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 9801edfba8dfcdb1da3b0afccdf143e13d646b56; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 4c46beb807efcc93f5899ebe1f5958248eb296c6 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 4c46beb807efcc93f5899ebe1f5958248eb296c6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97955. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97955.md
Affected: Linux >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, < 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8; >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, < 9801edfba8dfcdb1da3b0afccdf143e13d646b56; >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, < 4c46beb807efcc93f5899ebe1f5958248eb296c6; Linux 6.18
Fixed in: Linux 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8, Linux 9801edfba8dfcdb1da3b0afccdf143e13d646b56, Linux 4c46beb807efcc93f5899ebe1f5958248eb296c6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97955 being exploited?

There is no confirmed exploitation: CVE-2026-97955 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97955?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-97955?

Linux \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 9801edfba8dfcdb1da3b0afccdf143e13d646b56; \>= 730ff06d3f5cc2ce0348414b78c10528b767d4a3, \< 4c46beb807efcc93f5899ebe1f5958248eb296c6; Linux 6.18.

### Is there a fix for CVE-2026-97955?

Yes. Fixed in Linux 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8, Linux 9801edfba8dfcdb1da3b0afccdf143e13d646b56, Linux 4c46beb807efcc93f5899ebe1f5958248eb296c6. Upgrade Linux to 4c46beb807efcc93f5899ebe1f5958248eb296c6 or later.

### How do I check if I'm affected by CVE-2026-97955?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8>
- other: <https://git.kernel.org/stable/c/9801edfba8dfcdb1da3b0afccdf143e13d646b56>
- other: <https://git.kernel.org/stable/c/4c46beb807efcc93f5899ebe1f5958248eb296c6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97955>

HTML: <https://flawdb.com/CVE-2026-97955> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97955>
