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 41AAC16D31C for ; Fri, 12 Jul 2024 12:38:17 +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=1720787897; cv=none; b=rZOsdTZ8EU2GXVpiMHnpD3XS3dL6KTcv2Vhq8Rsx1+Sxp2AgD+vyKQ7Y/idTvqNyqYdmPPNeKYrjPybOxFaTsFFE05gIbw6MAe7+nix2EMmfVrE7ud2l0rkfaGIurD8JDFvsT1OIQF1YFEROF/mKcz6vm5ul1PVLkAuKqBoWOp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787897; c=relaxed/simple; bh=IJmhLYmOT1Vy+NmZQiSHFEaa8RO2KFitL8GJDiLUjJc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qCPZvh9I3vGNQmIVFWJmiRDDAoYcclov+p9qiIwpyMttQN1NcR7o01P4GNVJWkMD1bMtHruQmU0pKKu28jtTZXCMC30xHd0fKmn3Qk4hKE29qPz4HoV2A8kpPIdzdpuhc0gLTbt+u470JbqW3OgZ85K/X1rcZiA7uN0hSkTOhQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZTXPf2XA; 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="ZTXPf2XA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B471BC32782; Fri, 12 Jul 2024 12:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787897; bh=IJmhLYmOT1Vy+NmZQiSHFEaa8RO2KFitL8GJDiLUjJc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZTXPf2XAqoVQnTu88suck04XM5UVDFrOyIFHCFkkIw72nPFhcbJcIghoEV0sBNIZ9 l2huF0dbFn2s8HNFCTS2MJfMCYm+BjExw3BFEW8mXR6QnfyjJvcqJ6jl5nyM/oToMS HtN1fB2n0tMzeF4ZPeURcUyAehCp+f8tsoHaWYUg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40990: RDMA/mlx5: Add check for srq max_sge attribute Date: Fri, 12 Jul 2024 14:37:54 +0200 Message-ID: <2024071249-CVE-2024-40990-bba5@gregkh> X-Mailer: git-send-email 2.45.2 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=2502; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IJmhLYmOT1Vy+NmZQiSHFEaa8RO2KFitL8GJDiLUjJc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTledWsNf4HO8QiV9Yz91RWhojtO2Wsoiv7tMtau9S9 0yYeMCrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSacIwh7f+yMJ0X/mJSjLK 9/pUOn9vLEoUYFgwJfxQs2qWHtuWRwJn1ikenF2y62IdAA== 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/mlx5: Add check for srq max_sge attribute max_sge attribute is passed by the user, and is inserted and used unchecked, so verify that the value doesn't exceed maximum allowed value before using it. The Linux kernel CVE team has assigned CVE-2024-40990 to this issue. Affected and fixed versions =========================== Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 5.10.221 with commit 7186b81c1f15 Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 5.15.162 with commit 1e692244bf7d Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 6.1.96 with commit 999586418600 Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 6.6.36 with commit e0deb0e9c967 Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 6.9.7 with commit 4ab99e361313 Issue introduced in 3.11 with commit e126ba97dba9 and fixed in 6.10-rc5 with commit 36ab7ada64ca 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-40990 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/mlx5/srq.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/7186b81c1f15e39069b1af172c6a951728ed3511 https://git.kernel.org/stable/c/1e692244bf7dd827dd72edc6c4a3b36ae572f03c https://git.kernel.org/stable/c/999586418600b4b3b93c2a0edd3a4ca71ee759bf https://git.kernel.org/stable/c/e0deb0e9c967b61420235f7f17a4450b4b4d6ce2 https://git.kernel.org/stable/c/4ab99e3613139f026d2d8ba954819e2876120ab3 https://git.kernel.org/stable/c/36ab7ada64caf08f10ee5a114d39964d1f91e81d