net: mana: Skip redundant detach on already-detached port
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
net: mana: Skip redundant detach on already-detached port
When mana_per_port_queue_reset_work_handler() runs after a previous detach succeeded but attach failed, the port is left in a detached state with apc->tx_qp and apc->rxqs already freed. Calling mana_detach() again unconditionally leads to NULL pointer dereferences during queue teardown.
Add an early exit in mana_detach() when the port is already in detached state (!netif_device_present) for non-close callers, making it safe to call idempotently. This allows the queue reset handler and other recovery paths to simply retry mana_attach() without redundant teardown.
From the CVE record · Linux
References
- git.kernel.org/stable/c/c4152b4e28b3e550ec99351bf900e2c24c2608ccPatch
- git.kernel.org/stable/c/7ae590797f9b5c240aaea5773f5f00977a42a846Patch
- git.kernel.org/stable/c/5b05aa36ee24297d7296ca58dfd8c448d0e4cda3Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63972.json
- nvd.nist.gov/vuln/detail/CVE-2026-63972
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git