bnxt_en: Shutdown FW DMA in bnxt_shutdown()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bnxt_en: Shutdown FW DMA in bnxt_shutdown()
The netif_close() call in bnxt_shutdown() only stops packet DMA. There may be FW DMA for trace logging (recently added) that will continue. If we kexec to a new kernel, the DMA will corrupt memory in the new kernel.
Add bnxt_hwrm_func_drv_unrgtr() to unregister the driver from the FW. This will stop the FW DMA. In case the call fails, call pcie_flr() to reset the function and stop the DMA.
From the CVE record · Linux
The Linux kernel's bnxt_en driver can leave firmware trace-logging DMA running during shutdown. If the system kexecs into a new kernel, that DMA can corrupt memory in the new kernel. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux systems that use the bnxt_en driver should check whether their kernel is affected; no affected versions are specified.