| From bippy-7c5fe7eed585 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-53094: RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES |
| |
| While running ISER over SIW, the initiator machine encounters a warning |
| from skb_splice_from_iter() indicating that a slab page is being used in |
| send_page. To address this, it is better to add a sendpage_ok() check |
| within the driver itself, and if it returns 0, then MSG_SPLICE_PAGES flag |
| should be disabled before entering the network stack. |
| |
| A similar issue has been discussed for NVMe in this thread: |
| https://lore.kernel.org/all/20240530142417.146696-1-ofir.gal@volumez.com/ |
| |
| WARNING: CPU: 0 PID: 5342 at net/core/skbuff.c:7140 skb_splice_from_iter+0x173/0x320 |
| Call Trace: |
| tcp_sendmsg_locked+0x368/0xe40 |
| siw_tx_hdt+0x695/0xa40 [siw] |
| siw_qp_sq_process+0x102/0xb00 [siw] |
| siw_sq_resume+0x39/0x110 [siw] |
| siw_run_sq+0x74/0x160 [siw] |
| kthread+0xd2/0x100 |
| ret_from_fork+0x34/0x40 |
| ret_from_fork_asm+0x1a/0x30 |
| |
| The Linux kernel CVE team has assigned CVE-2024-53094 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.3 with commit 0e935ae6afcdbe6f0c0aa457ae57feccc63bb9be and fixed in 6.6.62 with commit 3406bfc813a9bbd9c3055795e985f527b7852e8c |
| Issue introduced in 5.3 with commit 0e935ae6afcdbe6f0c0aa457ae57feccc63bb9be and fixed in 6.11.9 with commit bb5738957d92c8603a90c9664d34236641c221b2 |
| Issue introduced in 5.3 with commit 0e935ae6afcdbe6f0c0aa457ae57feccc63bb9be and fixed in 6.12 with commit 4e1e3dd88a4cedd5ccc1a3fc3d71e03b70a7a791 |
| |
| 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-53094 |
| 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/sw/siw/siw_qp_tx.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/3406bfc813a9bbd9c3055795e985f527b7852e8c |
| https://git.kernel.org/stable/c/bb5738957d92c8603a90c9664d34236641c221b2 |
| https://git.kernel.org/stable/c/4e1e3dd88a4cedd5ccc1a3fc3d71e03b70a7a791 |