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 B4A9714B96F for ; Wed, 19 Jun 2024 13:37:51 +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=1718804271; cv=none; b=JnmtmZBkLW2mLJPWriYvXhiO9zziNuNsCrmU5xC3qViFaRdOosrVz+zeMx8iFMT3QrNXNaEvjtHMLeH1zlMjwGYUeLfN9k0HbE57HMNO3/D9GumrV2avOW8ZsfRZPCMI5+m3XZKFFe8h58E/vc9nd/ToeiVqtZMR1TD0E7FX6U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804271; c=relaxed/simple; bh=byF5qe9RykKtoZyO8z6p8JLDUyPyrvcUvrLrI7qsfB4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qfAT0TDJFCET8oVFqCWPGMeobkkH1STAIZBRXtnuDSkkmGifsyqnrvUE910x0o5QFQcfx1gXVWtr3X07aUVel6ZGhoH6DkyqQRJYaPrX0Omy28olOQ2AjnFy4zHyuNUp/j8Qhc8z/AOzhmWCul6Kwi+bRcrak1Ki9mMfW8QKYaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2i/gVXtr; 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="2i/gVXtr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B973C2BBFC; Wed, 19 Jun 2024 13:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804271; bh=byF5qe9RykKtoZyO8z6p8JLDUyPyrvcUvrLrI7qsfB4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2i/gVXtrWRvuzDGcJySB8BGJoUCjnRvZypFAj5Y6ANPU/f8MXUYV1U8Pa7KamNoxC 5sQWzuLrBNoUGoDu88hxZar/ryB+ldtQBjlz1/WFY3X71AqkLl+5+WRx/AoMMLjF6Y a2PyB4/8C2Jr3YOIs73CqAmwpRT0q6fK+R+OOoUs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38542: RDMA/mana_ib: boundary check before installing cq callbacks Date: Wed, 19 Jun 2024 15:35:51 +0200 Message-ID: <2024061948-CVE-2024-38542-2481@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=1912; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=byF5qe9RykKtoZyO8z6p8JLDUyPyrvcUvrLrI7qsfB4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF97bIFQd53Y3TEixsWzbhiKD+uwUbWeZVbz0gEdfZ2 lDb9VG7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSMI9hwXlrgwlhh0+oKVYU 3qpRt126Y+JJHYZ51tLfrUTYJu2LnP0412CqaN7aF+FBAA== 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/mana_ib: boundary check before installing cq callbacks Add a boundary check inside mana_ib_install_cq_cb to prevent index overflow. The Linux kernel CVE team has assigned CVE-2024-38542 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8.2 with commit cf9cc859d6ff and fixed in 6.8.12 with commit f12afddfb142 Issue introduced in 6.9 with commit 2a31c5a7e0d8 and fixed in 6.9.3 with commit 168f6fbde0ea Issue introduced in 6.9 with commit 2a31c5a7e0d8 and fixed in 6.10-rc1 with commit f79edef79b6a 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-38542 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/mana/cq.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/f12afddfb142587d786df9e3cc4862190d3e2ec8 https://git.kernel.org/stable/c/168f6fbde0eabd71d1f4133df7d001a950b96977 https://git.kernel.org/stable/c/f79edef79b6a2161f4124112f9b0c46891bb0b74