| 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-53226: RDMA/hns: Fix NULL pointer derefernce in hns_roce_map_mr_sg() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| RDMA/hns: Fix NULL pointer derefernce in hns_roce_map_mr_sg() |
| |
| ib_map_mr_sg() allows ULPs to specify NULL as the sg_offset argument. |
| The driver needs to check whether it is a NULL pointer before |
| dereferencing it. |
| |
| The Linux kernel CVE team has assigned CVE-2024-53226 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.10.224 with commit edc2dee07ab4ae2188b9780c453a64032162a5a0 and fixed in 5.10.231 with commit bd715e191d444992d6ed124f15856da5c1cae2de |
| Issue introduced in 5.15.165 with commit 3c301b8a046b57e3de14c6fc669d81dcb71bb5b5 and fixed in 5.15.174 with commit 35f5b68f63aac61d30ce0b0c6beb09b8845a3e65 |
| Issue introduced in 6.1.103 with commit 5a13652ac34be9b60feec89835763574825a8905 and fixed in 6.1.120 with commit 52617e76f4963644db71dc0a17e998654dc0c7f4 |
| Issue introduced in 6.6.44 with commit 4d480e45cb7fffb9d9b49924469c1f458068080a and fixed in 6.6.64 with commit 6b0d7d6e6883d0ec70cd7b5a02c47c003d5defe7 |
| Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.11.11 with commit 71becb0e9df78a8d43dfd0efcef18c830a0af477 |
| Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.12.2 with commit 8c269bb2cc666ca580271e1a8136c63ac9162e1e |
| Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.13 with commit 6b526d17eed850352d880b93b9bf20b93006bd92 |
| Issue introduced in 6.10.3 with commit ecdf900a5a3372bc0208e0701a116f112eb6039c |
| |
| 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-53226 |
| 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/hns/hns_roce_mr.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/bd715e191d444992d6ed124f15856da5c1cae2de |
| https://git.kernel.org/stable/c/35f5b68f63aac61d30ce0b0c6beb09b8845a3e65 |
| https://git.kernel.org/stable/c/52617e76f4963644db71dc0a17e998654dc0c7f4 |
| https://git.kernel.org/stable/c/6b0d7d6e6883d0ec70cd7b5a02c47c003d5defe7 |
| https://git.kernel.org/stable/c/71becb0e9df78a8d43dfd0efcef18c830a0af477 |
| https://git.kernel.org/stable/c/8c269bb2cc666ca580271e1a8136c63ac9162e1e |
| https://git.kernel.org/stable/c/6b526d17eed850352d880b93b9bf20b93006bd92 |