Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A3311A4F02 for ; Thu, 21 Nov 2024 18:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732213055; cv=none; b=rY4XjHcIsajnRleJx9bxJT0aiXAU6Hw02r6hWO6nC5NJLOgUndBFO/CGDiGaNAsUQhpmElxvhlC8hdetBDcdRF6Wpe4Stk0dnJqW0NJKFoiRKc/kQMjSHsZLvx0catq/XtIhxFZn2UaNADNSrbY8FtBwkXWOWlKYAXpURkRBcck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732213055; c=relaxed/simple; bh=EYEF8h7BmhpBEmy47TzAWJh3NTHoCCm7lJ+4FTmNHYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DiKr2l4zXRYV6Ljcdjwp4+S4DCp1ln0ZK1/yjfX6tuP0adBXu+8bFOFDYfhLd6EvI0/piCG3D4vgSuEN0kxuWy0BavwwaQpPjybqbhT9DcEYslGyKu+U1Z+vzftE6ByWIa5OMsqvGJXxLLI7k0ItGD32nkSIjwwtxdYwXB6aZLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mbv7J3Eo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mbv7J3Eo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D5C2C4CECD; Thu, 21 Nov 2024 18:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732213054; bh=EYEF8h7BmhpBEmy47TzAWJh3NTHoCCm7lJ+4FTmNHYU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mbv7J3EosDOYzdjKSH6QQD+PHjPmAtmSnG9wV7tkKBPHA0co9p//hMNgjRvGhSUkd cpe5syzrOeS9JT46kHJs8xcrpnUtA8/M0HDPHN9ldMwHTX9eFgW2V2GSEdktqoX3BJ rmNasuYPBsw+CpbUGsk5r5o9UNL5G9ghJHnh+CfI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53094: RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES Date: Thu, 21 Nov 2024 19:16:55 +0100 Message-ID: <2024112152-CVE-2024-53094-7059@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2527; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EYEF8h7BmhpBEmy47TzAWJh3NTHoCCm7lJ+4FTmNHYU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn2lSJfHA+vkP9oPVXWPqPstEDbgR4fsfnBhQ9cOaROH /L5rhLbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOJKWCYZ7lL/07G/iPN1Uaf 11d889mykVHVjGHBxqmX/BpFDzXHHK8PdNaSnSKo/9QPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 =========================== Fixed in 6.6.62 with commit 3406bfc813a9 Fixed in 6.11.9 with commit bb5738957d92 Fixed in 6.12 with commit 4e1e3dd88a4c 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