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 DA25213B58D for ; Sun, 29 Dec 2024 11:30:55 +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=1735471855; cv=none; b=kb9R448VYNnnYikVJAaTlPQGcCkJ5JMyu+fVR52tLRjjJYKqiKuIr0fHr9IlG9N/8bNvZlHsiqbkFFtwSQzIvuZzBZevpcg2WVRu7Q1YMBO9GrBsO7djzyUZRP0nYDDexR8ZGRv2n0KqGlg68TK2ksEhn1THaHNX3C6DiHRdPoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471855; c=relaxed/simple; bh=gCvLAWuSLa/T8n38Vq629cZ0S8hKvWSBHGtceITAt2Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eW6W6gVFOZ+SfRnpZ0H5kchj86LJ5ubZA/VG/bMdN6/v9B4c4jaMByqrXPX+5uaewUCde7Rk6hvl+mKUCO8Phz/DsBaCq1BSwAGK/V4WRIEi5WfNdEV4JvmF+CJxwFA21o+qyaReOCI/tB3y1F72KtoXEIT5LTy9kWHVbfTlUPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lYFjXaeE; 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="lYFjXaeE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B2B7C4CED1; Sun, 29 Dec 2024 11:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471855; bh=gCvLAWuSLa/T8n38Vq629cZ0S8hKvWSBHGtceITAt2Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lYFjXaeEKiZm0/8pYbeeETkZonneue0qEWBNpFswMsMK72DohXvcSf/qfQ8UUvMuY 18pHQNVy2OG4gXvGf4U2crVlGygKAteZPJ/xWgq3rKSaM3WaGZOTgNiHeqB0Llsp84 1jSewqb9qftnbttL7HN3hb8PnAx++X8LvbU5xonc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56722: RDMA/hns: Fix cpu stuck caused by printings during reset Date: Sun, 29 Dec 2024 12:29:23 +0100 Message-ID: <2024122923-CVE-2024-56722-5594@gregkh> X-Mailer: git-send-email 2.47.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=2976; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gCvLAWuSLa/T8n38Vq629cZ0S8hKvWSBHGtceITAt2Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRpOva700t/1jw7Hu6LN2kSNd/P+tp9yWn+5knimbY 1TqFRvYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxMGBYcHzRDJu5Nzax+r6+ sqwsRIGTX+t6OcP8/LYnczMvNJZZl07s1H5X61RRySwAAA== 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/hns: Fix cpu stuck caused by printings during reset During reset, cmd to destroy resources such as qp, cq, and mr may fail, and error logs will be printed. When a large number of resources are destroyed, there will be lots of printings, and it may lead to a cpu stuck. Delete some unnecessary printings and replace other printing functions in these paths with the ratelimited version. The Linux kernel CVE team has assigned CVE-2024-56722 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.1.120 with commit 31c6fe9b79ed42440094f2367897aea0c0ce96ec Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.6.64 with commit b4ba31e5aaffbda9b22d9a35c40b16dc39e475a6 Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.11.11 with commit a0e4c78770faa0d56d47391476fe1d827e72eded Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.12.2 with commit e2e64f9c42c717beb459ab209ec1c4baa73d3760 Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.13-rc1 with commit 323275ac2ff15b2b7b3eac391ae5d8c5a3c3a999 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-56722 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/hns/hns_roce_cq.c drivers/infiniband/hw/hns/hns_roce_hem.c drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_mr.c drivers/infiniband/hw/hns/hns_roce_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/31c6fe9b79ed42440094f2367897aea0c0ce96ec https://git.kernel.org/stable/c/b4ba31e5aaffbda9b22d9a35c40b16dc39e475a6 https://git.kernel.org/stable/c/a0e4c78770faa0d56d47391476fe1d827e72eded https://git.kernel.org/stable/c/e2e64f9c42c717beb459ab209ec1c4baa73d3760 https://git.kernel.org/stable/c/323275ac2ff15b2b7b3eac391ae5d8c5a3c3a999