CVE-2024-57936: RDMA/bnxt_re: Fix max SGEs for the Work Request
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxt_re: Fix max SGEs for the Work Request
Gen P7 supports up to 13 SGEs for now. WQE software structure can hold only 6 now. Since the max send sge is reported as 13, the stack can give requests up to 13 SGEs. This is causing traffic failures and system crashes.
Use the define for max SGE supported for variable size. This will work for both static and variable WQEs.
The Linux kernel CVE team has assigned CVE-2024-57936 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 227f51743b61fe3f6fc481f0fb8086bf8c49b8c9 and fixed in 6.12.9 with commit 9a479088e0c8f6140b8c7752b563bc8c6c6dcc8c Issue introduced in 6.12 with commit 227f51743b61fe3f6fc481f0fb8086bf8c49b8c9 and fixed in 6.13 with commit 79d330fbdffd8cee06d8bdf38d82cb62d8363a27
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-57936
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_fp.h
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/3de1b50f055dc2ca7072a526cdda21f691c22dd9 https://git.kernel.org/stable/c/9a479088e0c8f6140b8c7752b563bc8c6c6dcc8c https://git.kernel.org/stable/c/79d330fbdffd8cee06d8bdf38d82cb62d8363a27