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 B4DDA145A01 for ; Thu, 30 May 2024 14:59:52 +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=1717081192; cv=none; b=DcWvHaw9QE5W937nmKQDhJBnehEtY1hLZuokNvnEBx0xfHOK+h6s5I8yL43k+9VXNdiGXtFJ8We91IatuVGaqVICU4Vz4gCMPSh8T1WFCian/CYf1gxA7osx6EY3HLm45m7XGJ/8noKiT8vb1foX3poxi9JkOO5y/NFCVsgZuRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081192; c=relaxed/simple; bh=W3ELllAaq/TA/5t7Hr09DuBBQIDH1fJ4h/QQoqprsTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I/mALkq5OPqWWe80f+PZGNvJQkb4YtQalGl1xmmSQcLslT5hIvAJkA7A3m4rh2STtPG1dGX77voSsacbU9sRd9JmzUgyt84fqZL0I7zTnRxm/PPBHNTZMr4VV3MQmBJ2xz7bMO+Dj0dKyoqatZ2hQtn3yR6NHWxiE4xf44GONXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K/B6GPj1; 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="K/B6GPj1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA443C2BBFC; Thu, 30 May 2024 14:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081192; bh=W3ELllAaq/TA/5t7Hr09DuBBQIDH1fJ4h/QQoqprsTw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K/B6GPj1cwGECyhIvxeOWu4215X67WSphIvgBhsEXlIKn0GuPreX/Z3ifFcdAEd2q z7L4ErHQzrUdfpqpzPQuaH7EQLCB7zf5+YFW+OWuFzmqSHgfDpMo5ypbDzJUzLOUkC OJix5h9NiULNF9D0ukRoQn1z0/2tKSesiAbx4l2U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36021: net: hns3: fix kernel crash when devlink reload during pf initialization Date: Thu, 30 May 2024 16:59:44 +0200 Message-ID: <2024053044-CVE-2024-36021-f196@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=2324; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W3ELllAaq/TA/5t7Hr09DuBBQIDH1fJ4h/QQoqprsTw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRUxJm6rJxrZYufMnRvsCx55/fWr4DXbYmd+YYsywRn z3/B+PrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI2DuGeWqWs7mDM9axPfzo 83zODMXdDOk2nxnmF8fyNi25sXVxNavU4qfHRfdsi16nCQA= 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 pf 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 taking devl_lock during initialization. The Linux kernel CVE team has assigned CVE-2024-36021 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b741269b2759 and fixed in 6.1.85 with commit 50b69054f455 Issue introduced in 5.15 with commit b741269b2759 and fixed in 6.6.26 with commit 1b550dae5590 Issue introduced in 5.15 with commit b741269b2759 and fixed in 6.8.5 with commit 7ca0f73e5e2d Issue introduced in 5.15 with commit b741269b2759 and fixed in 6.9 with commit 93305b77ffcb 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-36021 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 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/50b69054f455dcdb34bd6b22764c7579b270eef3 https://git.kernel.org/stable/c/1b550dae55901c2cc9075d6a7155a71b4f516e86 https://git.kernel.org/stable/c/7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5 https://git.kernel.org/stable/c/93305b77ffcb042f1538ecc383505e87d95aa05a