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 4387C12EBEE for ; Tue, 21 May 2024 14:22:10 +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=1716301330; cv=none; b=Cgxv60AsJfii8TuUA3JTHOTamiJOwz1vEt+Xy7MHV3U3VLrZFiFdFsDkJpx9QHLKt/cG0gSHUzdWlm7mVQXnRCd0/vdsTE+0gjOMTnnLWGJZDQaKX2TWGTu9Gh0KMWqfmXtCnFW6QYd3NQFTE39LRLxoZ4/pJ6KmQMhtJYvx8w4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301330; c=relaxed/simple; bh=TjkchqsancyDwMBj3F4PzZHJ4g2UOm+nsYUZoerDHM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ObHMrPhG9+5I+HWTybD0mlXX4Cdw2L6osAQSxc4Wu/wAkHYT8bXinEmu8i0QiYe8i3movb84MwA4RzYEaZRR+kMxXh5aDBS5+wEM4vg3DeXbwzNrCTWyaD5ZQLSbc9el2HAokV6t8Uv7Lkl2r1yFS4Sn4+1Utgub0+9ul0hRGTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wLf72oED; 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="wLf72oED" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD9C9C2BD11; Tue, 21 May 2024 14:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301330; bh=TjkchqsancyDwMBj3F4PzZHJ4g2UOm+nsYUZoerDHM8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wLf72oEDWr6NQ0XxsFg2xD82Yx1CkJ+pg7NXQC2mxr41jzpbo5GsREY6+sr81UPLF 9py/+KsW3nZOp4xRMDzeom1nLAz4YUq0zqJhQNf6kaaGyIBJ814Eag/iMy0NrPWHHp MzuOIO/QUR+PlHIjD8mD8i2UPxm6pgwSw3LhVwhs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47265: RDMA: Verify port when creating flow rule Date: Tue, 21 May 2024 16:20:19 +0200 Message-ID: <2024052149-CVE-2021-47265-b339@gregkh> X-Mailer: git-send-email 2.45.1 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=2450; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TjkchqsancyDwMBj3F4PzZHJ4g2UOm+nsYUZoerDHM8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a1tXK5wOK580ydzLIMijUW3C2dvJD26vNQr/Vrth2 b1dN5de7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbLvFsOCy3L57+42mF/+O KGQsCzkmwzrzbB3DgpXFmZVF1x1Xv93+opSh8T2/46ElzwE= 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: Verify port when creating flow rule Validate port value provided by the user and with that remove no longer needed validation by the driver. The missing check in the mlx5_ib driver could cause to the below oops. Call trace: _create_flow_rule+0x2d4/0xf28 [mlx5_ib] mlx5_ib_create_flow+0x2d0/0x5b0 [mlx5_ib] ib_uverbs_ex_create_flow+0x4cc/0x624 [ib_uverbs] ib_uverbs_handler_UVERBS_METHOD_INVOKE_WRITE+0xd4/0x150 [ib_uverbs] ib_uverbs_cmd_verbs.isra.7+0xb28/0xc50 [ib_uverbs] ib_uverbs_ioctl+0x158/0x1d0 [ib_uverbs] do_vfs_ioctl+0xd0/0xaf0 ksys_ioctl+0x84/0xb4 __arm64_sys_ioctl+0x28/0xc4 el0_svc_common.constprop.3+0xa4/0x254 el0_svc_handler+0x84/0xa0 el0_svc+0x10/0x26c Code: b9401260 f9615681 51000400 8b001c20 (f9403c1a) The Linux kernel CVE team has assigned CVE-2021-47265 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 436f2ad05a0b and fixed in 5.12.11 with commit 8dc1b0e0ca20 Issue introduced in 3.12 with commit 436f2ad05a0b and fixed in 5.13 with commit 2adcb4c5a52a 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-2021-47265 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/core/uverbs_cmd.c drivers/infiniband/hw/mlx4/main.c drivers/infiniband/hw/mlx5/fs.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/8dc1b0e0ca204596c50bcd159ee069ae0f998176 https://git.kernel.org/stable/c/2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e