Linux
net: mana: Skip redundant detach on already-detached port
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= fb9f98e1041a30dd5766620a2a64cb472b54caa9, < c4152b4e28b3e550ec99351bf900e2c24c2608cc
- >= 3b194343c25084a8d2fa0c0f2c9e80f3080fd732, < 7ae590797f9b5c240aaea5773f5f00977a42a846
- >= 3b194343c25084a8d2fa0c0f2c9e80f3080fd732, < 5b05aa36ee24297d7296ca58dfd8c448d0e4cda3
- >= 6.18.33, < 6.18.35
Fixed in c4152b4e28b3e550ec99351bf900e2c24c2608cc, 7ae590797f9b5c240aaea5773f5f00977a42a846, 5b05aa36ee24297d7296ca58dfd8c448d0e4cda3, 6.18.35
- 7.0
Fixed in 0, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to c4152b4e28b3e550ec99351bf900e2c24c2608cc or 7ae590797f9b5c240aaea5773f5f00977a42a846 or 5b05aa36ee24297d7296ca58dfd8c448d0e4cda3 or 6.18.35 or later.
Upgrade Linux to 0 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.