Skip to content
Heist/ feed
Unrated

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-97955

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-97955

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "730ff06d3f5cc2ce0348414b78c10528b767d4a3",
        "lessThan": "5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "730ff06d3f5cc2ce0348414b78c10528b767d4a3",
        "lessThan": "9801edfba8dfcdb1da3b0afccdf143e13d646b56",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "730ff06d3f5cc2ce0348414b78c10528b767d4a3",
        "lessThan": "4c46beb807efcc93f5899ebe1f5958248eb296c6",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microsoft/mana/mana_bpf.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.18"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.18",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.7",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microsoft/mana/mana_bpf.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-97955

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38095 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement