# CVE-2026-63973: net: mana: Add NULL guards in teardown path to prevent panic on attach failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:59.263Z
- Modified: 2026-10-02T19:42:32.457Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: mana: Add NULL guards in teardown path to prevent panic on attach failure

When queue allocation fails partway through, the error cleanup frees
and NULLs apc->tx_qp and apc->rxqs. Multiple teardown paths such as
mana_remove(), mana_change_mtu() recovery, and internal error handling
in mana_alloc_queues() can subsequently call into functions that
dereference these pointers without NULL checks:

- mana_chn_setxdp() dereferences apc->rxqs[0], causing a NULL pointer
  dereference panic (CR2: 0000000000000000 at mana_chn_setxdp+0x26).
- mana_destroy_vport() iterates apc->rxqs without a NULL check.
- mana_fence_rqs() iterates apc->rxqs without a NULL check.
- mana_dealloc_queues() iterates apc->tx_qp without a NULL check.

Add NULL guards for apc->rxqs in mana_fence_rqs(),
mana_destroy_vport(), and before the mana_chn_setxdp() call. Add a
NULL guard for apc->tx_qp in mana_dealloc_queues() to skip TX queue
draining when TX queues were never allocated or already freed.

(As written by CVE List.)

## Affected

- Linux Linux: from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before da7e4a1aaf397af6a094f640c92d6bc7564c10db; from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before 95e414f8324385771bdfd6d497a01d5593813ccb; from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before 26a96fa81496afe7d162d172ccdc8cb9dbc685d2; from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before da87896f34e0a51489811d1a684e2953099ca98f; from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before 0a9c520fdcb1cb2e79c163c12d359b5e1ee40007; from ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f before 17bfe0a8c014ee1d542ad352cd6a0a505361664a; 5.13 (not affected: before 5.13; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.13 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/da7e4a1aaf397af6a094f640c92d6bc7564c10db> (patch)
- <https://git.kernel.org/stable/c/95e414f8324385771bdfd6d497a01d5593813ccb> (patch)
- <https://git.kernel.org/stable/c/26a96fa81496afe7d162d172ccdc8cb9dbc685d2> (patch)
- <https://git.kernel.org/stable/c/da87896f34e0a51489811d1a684e2953099ca98f> (patch)
- <https://git.kernel.org/stable/c/0a9c520fdcb1cb2e79c163c12d359b5e1ee40007> (patch)
- <https://git.kernel.org/stable/c/17bfe0a8c014ee1d542ad352cd6a0a505361664a> (patch)

## Sources

- CVE List: [CVE-2026-63973](https://www.cve.org/CVERecord?id=CVE-2026-63973), CVE Terms of Use, modified 2026-07-19
- NVD: [CVE-2026-63973](https://nvd.nist.gov/vuln/detail/CVE-2026-63973), Public domain, modified 2026-10-02

---

Page: https://cve.day/CVE-2026-63973 · Whole record: https://cve.day/CVE-2026-63973.json · Rebuilt by cve.day 2026-11-25T22:59:28.881Z
