| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-50208: RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages |
| |
| Avoid memory corruption while setting up Level-2 PBL pages for the non MR |
| resources when num_pages > 256K. |
| |
| There will be a single PDE page address (contiguous pages in the case of > |
| PAGE_SIZE), but, current logic assumes multiple pages, leading to invalid |
| memory access after 256K PBL entries in the PDE. |
| |
| The Linux kernel CVE team has assigned CVE-2024-50208 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 5.10.229 with commit df6fed0a2a1a5e57f033bca40dc316b18e0d0ce6 |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 5.15.170 with commit de5857fa7bcc9a496a914c7e21390be873109f26 |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.1.115 with commit ea701c1849e7250ea41a4f7493e0a5f136c1d47e |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.6.59 with commit 87cb3b0054e53e0155b630bdf8fb714ded62565f |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.11.6 with commit daac56dd98e1ba814c878ac0acd482a37f2ab94b |
| Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.12 with commit 7988bdbbb85ac85a847baf09879edcd0f70521dc |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-50208 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/infiniband/hw/bnxt_re/qplib_res.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/df6fed0a2a1a5e57f033bca40dc316b18e0d0ce6 |
| https://git.kernel.org/stable/c/de5857fa7bcc9a496a914c7e21390be873109f26 |
| https://git.kernel.org/stable/c/ea701c1849e7250ea41a4f7493e0a5f136c1d47e |
| https://git.kernel.org/stable/c/87cb3b0054e53e0155b630bdf8fb714ded62565f |
| https://git.kernel.org/stable/c/daac56dd98e1ba814c878ac0acd482a37f2ab94b |
| https://git.kernel.org/stable/c/7988bdbbb85ac85a847baf09879edcd0f70521dc |