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 5F7E015A4B3 for ; Fri, 12 Jul 2024 12:21:31 +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=1720786892; cv=none; b=QBzLqAhlvs0UMhpNK30w6ql4k0aOp6ttOCtkvSHjGCye5cMbaTMHI29hidZyR3Q8rLtZ4C6nQmuHZaGNPJ3e0Yw6bnGYJC7+gsuD9+ngTy/ugdveKIiDMEXaBSTL2g7AIV24to+bVTnfkrBFl0GLe0KptOOVQH+gMEC0EW21/OI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786892; c=relaxed/simple; bh=EK/ca0caGGMtsmvfi+0O9EutOAzLMfsVPdJa4MhwY7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IjDuQ6dJzLGPHG82DIG+KZ2xmltPEd5iskN5ak7zNaFxZY4mxO0aaVQUGxKgZKoKSeNAzJvfKnrd1LBOb7qBTEuSDyJWwOzksiWmUYwLCEbQLYe1B2x6rbbFm68Mnm9OR9lhLkT0arlEXeZaut+D4lQJ6SXv/FKV47RYBhZi+D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nCCle8sv; 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="nCCle8sv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77651C32782; Fri, 12 Jul 2024 12:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786891; bh=EK/ca0caGGMtsmvfi+0O9EutOAzLMfsVPdJa4MhwY7w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nCCle8sv1K2vaxFiBjEOt+ZZhLbbp7tHUywgITuGp5hR/LsxUSxYVs4aUUhtAro2C 68LrLj+ZRNKQ6BurkVZEUSyl0FCfvAZz938Ed/ZCepsY7oIcak9dx33Saro3pYBKP7 Wqcvy3h8t4PL/1loQrvUpTirKQACNyCNjr3H7/i8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39507: net: hns3: fix kernel crash problem in concurrent scenario Date: Fri, 12 Jul 2024 14:21:13 +0200 Message-ID: <2024071205-CVE-2024-39507-cbc6@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=2509; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EK/ca0caGGMtsmvfi+0O9EutOAzLMfsVPdJa4MhwY7w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5Te+9JjuxNk1f4rG9S8VepP5DmjfWyd/aIL99oRya znTuB1CHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRi0wMc3idFmV7Re/6eDv2 wodbrTMWWHAt/sIwV0j94c/mvhMHpt0x3xT1w33Ces6GrwA= 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 problem in concurrent scenario When link status change, the nic driver need to notify the roce driver to handle this event, but at this time, the roce driver may uninit, then cause kernel crash. To fix the problem, when link status change, need to check whether the roce registered, and when uninit, need to wait link update finish. The Linux kernel CVE team has assigned CVE-2024-39507 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 45e92b7e4e27 and fixed in 5.15.162 with commit 62b5dfb67bfa Issue introduced in 5.1 with commit 45e92b7e4e27 and fixed in 6.1.95 with commit 6d0007f7b69d Issue introduced in 5.1 with commit 45e92b7e4e27 and fixed in 6.6.35 with commit 689de7c3bfc7 Issue introduced in 5.1 with commit 45e92b7e4e27 and fixed in 6.9.6 with commit b2c5024b771c Issue introduced in 5.1 with commit 45e92b7e4e27 and fixed in 6.10-rc4 with commit 12cda920212a 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-39507 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/62b5dfb67bfa8bd0301bf3442004563495f9ee48 https://git.kernel.org/stable/c/6d0007f7b69d684879a0f598a042e40244d3cf63 https://git.kernel.org/stable/c/689de7c3bfc7d47e0eacc641c4ce4a0f579aeefa https://git.kernel.org/stable/c/b2c5024b771cd1dd8175d5f6949accfadbab7edd https://git.kernel.org/stable/c/12cda920212a49fa22d9e8b9492ac4ea013310a4