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 ED4958004F for ; Mon, 29 Jul 2024 15:53:35 +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=1722268416; cv=none; b=fAS9XfPZP/hClQjcLpblsgiyqFC9rSSH++tzSm2cOdKJZrllctiAlESnBFIOSE2HBdS1fZWofdZCyexQXfCAzQkYmP1fLiCpn5hv9q+D65Zk5+KE/1H9OzzisKFsI3q/S7mRGpinOSW1jEowYUs+eQMF/NixffwJ39oESeSt4O0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268416; c=relaxed/simple; bh=vJwW4U65dUiWc54c82SQoEy2FBLBhX20l49goBd4oi8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E2AMng438IEkx60ASYfcFINAK8HQyNQvaaLgZRDWfdW+dFIlcxgLXtSQSpPZl0sPYpyEWnn9c9kTeIIdlyHDMZMMH2PY+aTEDHiQXvOaA4s2WjDt35Vj4y6fc9aYbURkXwB8ekIAwS2NEj93XyFmfow6A+buOH19a9hsUtlvJZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xuNO6qaF; 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="xuNO6qaF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E6ACC32786; Mon, 29 Jul 2024 15:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268415; bh=vJwW4U65dUiWc54c82SQoEy2FBLBhX20l49goBd4oi8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xuNO6qaFjtCJ2ajTYmQH4MXMWb5vYjBUqmqOjcNV33LI4eXrzWXcY64tBBfkLx3Uz 8JapfMWmKSGpj3+0gb6Vqkf+0ZT7APtG+SNagklPds1NpF2H8/SlZzoTOz5mAmg7K4 iTfnnhEsNJ3AuRXvb26EAZolEoiHLgjmWeWW+aog= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42080: RDMA/restrack: Fix potential invalid address access Date: Mon, 29 Jul 2024 17:53:09 +0200 Message-ID: <2024072955-CVE-2024-42080-d848@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=2300; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vJwW4U65dUiWc54c82SQoEy2FBLBhX20l49goBd4oi8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd113PXi/fx7zhesZT5ye9tv+TPvwx/Okpvbv3+WBh 9d4a94z6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHNdimF+guY1hTpz+k1+V H2belFE//02XP4FhwdzW/bzPOE8uKEi3KKvi7f/DPMuYDwA= 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/restrack: Fix potential invalid address access struct rdma_restrack_entry's kern_name was set to KBUILD_MODNAME in ib_create_cq(), while if the module exited but forgot del this rdma_restrack_entry, it would cause a invalid address access in rdma_restrack_clean() when print the owner of this rdma_restrack_entry. These code is used to help find one forgotten PD release in one of the ULPs. But it is not needed anymore, so delete them. The Linux kernel CVE team has assigned CVE-2024-42080 to this issue. Affected and fixed versions =========================== Fixed in 5.15.162 with commit 8656ef8a9288 Fixed in 6.1.97 with commit 782bdaf9d016 Fixed in 6.6.37 with commit 8ac281d42337 Fixed in 6.9.8 with commit f45b43d17240 Fixed in 6.10 with commit ca537a34775c 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-42080 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/restrack.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/8656ef8a9288d6c932654f8d3856dc4ab1cfc6b5 https://git.kernel.org/stable/c/782bdaf9d01658281bc813f3f873e6258aa1fd8d https://git.kernel.org/stable/c/8ac281d42337f36cf7061cf1ea094181b84bc1a9 https://git.kernel.org/stable/c/f45b43d17240e9ca67ebf3cc82bb046b07cc1c61 https://git.kernel.org/stable/c/ca537a34775c103f7b14d7bbd976403f1d1525d8