Executive brief
A security vulnerability has been identified in the Linux kernel's Microsoft Azure Network Adapter (MANA) driver. This flaw occurs during the shutdown process of a network channel, where internal data structures are deleted while the hardware might still be trying to access them. An attacker with local access could exploit this race condition to cause a system crash or potentially execute unauthorized actions, impacting the stability and security of cloud-based virtual machines using this adapter.
Technical details
A use-after-free vulnerability exists in the mana_hwc_destroy_channel() function within the Microsoft Azure Network Adapter (MANA) driver. The root cause is a race condition where 'hwc->caller_ctx' is freed before the Completion Queue (CQ) and Event Queue (EQ) are fully destroyed and their associated IRQs deregistered. Because mana_smc_teardown_hwc() does not synchronize against IRQ handlers executing on other CPUs, an in-flight interrupt handler can dereference the freed memory in mana_hwc_handle_resp(). This can result in a NULL pointer dereference or use-after-free. The fix involves reordering the teardown sequence to ensure queues are destroyed and IRQs are synchronized before freeing the context memory.
Affected products
- Linux Linux Kernel 5.13 to 5.15.203, 5.16 to 6.1.167, 6.2 to 6.6.130, 6.7 to 6.12.78, 6.13 to 6.18.20, 6.19 to 6.19.10, 7.0-rc1 to 7.0-rc4
Timeline
- 2026-03-11: other: Patch authored
- 2026-04-03: disclosed: CVE published
References
- https://git.kernel.org/stable/c/05d345719d85b927cba74afac4d5322de3aa4256
- https://git.kernel.org/stable/c/249e905571583a434d4ea8d6f92ccc0eef337115
- https://git.kernel.org/stable/c/2b001901f689021acd7bf2dceed74a1bdcaaa1f9
- https://git.kernel.org/stable/c/afdb1533eb9c05432aeb793a7280fa827c502f5c
- https://git.kernel.org/stable/c/b88edf12fc3779521ae5f6f1584153b15f7da6df
- https://git.kernel.org/stable/c/e23bf444512cb85d76012080a76cd1f9e967448e
- https://git.kernel.org/stable/c/fa103fc8f56954a60699a29215cb713448a39e87