Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: bnxt_en: Propagate RX ring init failures in bnxt_init_nic() bnxt_init_rx_rings() returns an error when bnxt_alloc_one_rx_ring() fails, but bnxt_init_nic() discards that return value and calls bnxt_init_chip(), which enables TPA. If an allocation fails, this could leave rxr->rx_tpa[] partially zeroed and TPA would be enabled over an array with zeroed entries. This would lead to a zeroed DMA address being handed out if the agg_idx is translated to a SW index at a zeroed entry. Fix this by propagating the error out of bnxt_init_nic(). Both callers already check its return value and unwind with bnxt_free_skbs() and bnxt_free_mem(), which tolerate a partially initialized RX ring.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected c0c050c58d840994ba842ad1c338a98e7c12b764 before e40641638743b4b848d5ed78a0565afffc359d8e; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before 6b24eca42619b93f69aebc2aa0a9fd28ac9a5085; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before 1f2d333ae2e1a73b7cc1c2a627587024cd147c01; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before c3eb07e78e628243cbb9bbb0115db802fb7a303f; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before daadccd062fdca5e77a8cc22ffe35857803b6c49; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before b4c40f2c80d7bf50648878bc206a39adfbfaec6c; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before dfd73af81cdb9f7b399754a59e2658a08211bee5; affected c0c050c58d840994ba842ad1c338a98e7c12b764 before 8e6a850c0746bb4be167aedf1ee57469fcda09a9 |
| Linux / Linux | affected 4.4; unaffected 0 before 4.4; unaffected 5.10.271 through 5.10.*; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2.7 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/e40641638743b4b848d5ed78a0565afffc359d8e
- https://git.kernel.org/stable/c/6b24eca42619b93f69aebc2aa0a9fd28ac9a5085
- https://git.kernel.org/stable/c/1f2d333ae2e1a73b7cc1c2a627587024cd147c01
- https://git.kernel.org/stable/c/c3eb07e78e628243cbb9bbb0115db802fb7a303f
- https://git.kernel.org/stable/c/daadccd062fdca5e77a8cc22ffe35857803b6c49
- https://git.kernel.org/stable/c/b4c40f2c80d7bf50648878bc206a39adfbfaec6c
- https://git.kernel.org/stable/c/dfd73af81cdb9f7b399754a59e2658a08211bee5
- https://git.kernel.org/stable/c/8e6a850c0746bb4be167aedf1ee57469fcda09a9