{"id":"CVE-2026-97955","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: restore the XDP program pointer when pre-allocation fails\n\nmana_xdp_set() publishes the new program into apc->bpf_prog before it\nallocates anything, because …","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: restore the XDP program pointer when pre-allocation fails\n\nmana_xdp_set() publishes the new program into apc->bpf_prog before it\nallocates anything, because …","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3 < 5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8","Linux >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3 < 9801edfba8dfcdb1da3b0afccdf143e13d646b56","Linux >= 730ff06d3f5cc2ce0348414b78c10528b767d4a3 < 4c46beb807efcc93f5899ebe1f5958248eb296c6","Linux 6.18"],"published":"2026-09-25","updated":"2026-09-25","sourceUpdated":"2026-09-25T11:17:23.147","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-97955","references":[{"url":"https://git.kernel.org/stable/c/4c46beb807efcc93f5899ebe1f5958248eb296c6","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5b3cdc9abd82b7e49e0f1a21d6eb75466c5ecef8","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9801edfba8dfcdb1da3b0afccdf143e13d646b56","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-09-25T11:06:38.878Z","slug":"CVE-2026-97955","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: restore the XDP program pointer when pre-allocation fails\n\nmana_xdp_set() publishes the new program into apc->bpf_prog before it\nallocates anything, because mana_pre_alloc_rxbufs() sizes the buffers\nfrom it via mana_get_rxbuf_cfg(). When that allocation fails the\nfunction returns the error directly, skipping the err_dealloc_rxbuffs\nlabel which is the only place that restores the previous pointer.\n\nThe attach is reported as failed, so the BPF core drops the reference it\nheld for the caller and the program can be freed, while apc->bpf_prog\nstill points at it. The next consumer of mana_xdp_get() - typically\nmana_chn_setxdp() from mana_alloc_queues() on the following ifup, or\nafter a TX timeout reset - then calls bpf_prog_add() on freed memory.\n\nThis is reachable from an ordinary \"ip link set dev ethX xdp obj ...\"\nwhenever the per-queue RX buffer pre-allocation cannot be satisfied.\n\nRestore the previous program on that error path.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}