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 9040913212C for ; Thu, 30 May 2024 15:29:20 +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=1717082960; cv=none; b=DCkkCcTDD2Tr+w0waem9xyTShSkYWRelSnBt85MyFVXPIHOoWTj64ybzPwdhzbQgfcbMlSj6eO0+3/9sRM5FV4GykHgPVtkoZJQDq5Lo6DXbmXgHbRUmf6ddhMNG3p1Us8XCN+ZWjb5Q/gI8DN1Jze21dE2zw+HEBOyA0pnG4PQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082960; c=relaxed/simple; bh=7LFbPSHBZWTB0TDYLt6oskNJNzoKKc9myNgGhKQjN4I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SJkevfUKOcBQgD/yKWsKywNNBSSbjNpbx90uxl5g5BCEAK/DSdGA1DAiRBi1K8KObGv6QUenziuXOcaCWNjy6WBnZsxSTnDp/8Jn2UdPW+zQQ8G4vt2/W/i++AitYutE/Pj2aG1R/Mbgwz0aHB/2EUn4S5lGxr1nbtGJ5bHlxcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PZvqZHnh; 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="PZvqZHnh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD720C4AF0A; Thu, 30 May 2024 15:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717082960; bh=7LFbPSHBZWTB0TDYLt6oskNJNzoKKc9myNgGhKQjN4I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PZvqZHnhWjDeRiNnYjhYNXil6j2LEI0YXwAimqtzYnnS2JazTV9GsRr/LTE5q/6+w W2AfAkWsMXWrQlFg4diBsDbgf7acGt4+dxb0L2WIoKgnd4QG84goz7Jnd6d0+dVTof NJRtKdKJAMIglsHdUewG1dLLueYl9tC4bevUhqBM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36900: net: hns3: fix kernel crash when devlink reload during initialization Date: Thu, 30 May 2024 17:28:52 +0200 Message-ID: <2024053035-CVE-2024-36900-8d85@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=2401; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7LFbPSHBZWTB0TDYLt6oskNJNzoKKc9myNgGhKQjN4I=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRs5XrXA5eO663jT3xRM8/4UuTfBYWVO+I6g/UcphVW fi/9Jh3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk/CHDHL5LYdcvfD3Leybq 04a7r06GLS+5k8gwz+rwKYNfaxWsxY7eyvhRmCt/IaLzKQA= 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: net: hns3: fix kernel crash when devlink reload during initialization The devlink reload process will access the hardware resources, but the register operation is done before the hardware is initialized. So, processing the devlink reload during initialization may lead to kernel crash. This patch fixes this by registering the devlink after hardware initialization. The Linux kernel CVE team has assigned CVE-2024-36900 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit cd6242991d2e and fixed in 6.1.91 with commit 72ede790f5a0 Issue introduced in 5.15 with commit cd6242991d2e and fixed in 6.6.31 with commit 5c623fe05348 Issue introduced in 5.15 with commit cd6242991d2e and fixed in 6.8.10 with commit c98bc78ce090 Issue introduced in 5.15 with commit cd6242991d2e and fixed in 6.9 with commit 35d92abfbad8 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-36900 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/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.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/72ede790f5a03c3957487400a1b72ebce293a2e7 https://git.kernel.org/stable/c/5c623fe0534806b627054da09b6f51b7b2f7b9cd https://git.kernel.org/stable/c/c98bc78ce0909ccc92005e2cb6609ec6c7942f69 https://git.kernel.org/stable/c/35d92abfbad88cf947c010baf34b075e40566095