From mboxrd@z Thu Jan 1 00:00:00 1970 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 03FC9224F6 for ; Wed, 19 Jun 2024 14:55:19 +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=1718808919; cv=none; b=Lo1TzZ+7zM5wwmE0dvqIXrz4a3r6s2s5JEO1jVzgRcGGcJosU/SEmgG2L6oPTzRYtG8mp/5YZLtUNY4naRnGZ/4igUm7CCDD1qER5n331h504C/B6JkOo9WtexZ6RJt13x+HV5wqYuIZNHwriyuvWSGHJO8qYCORKFsHlyVDJSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808919; c=relaxed/simple; bh=FJwDYdWRMG3a62YG7eGvKHHHL58qgs75CUz7Euw/Wbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pWYDqK7yTIFYolWDg3kahi6fOIIqpgU2mGP3N+zx0ZiioE2AvlHjlpkgnC3UrtzZ2mbr1RznmncAPPtrdT+bIRgNCrib/AHJ+2vjsgs7PBtnLxp6sGOm3o9PVPTK+HR7BZSjO0BhYEazfjZPl7vyU1IAgIPIZ8f/HAslwsovniI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tqO6rjiB; 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="tqO6rjiB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FFF9C2BBFC; Wed, 19 Jun 2024 14:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808918; bh=FJwDYdWRMG3a62YG7eGvKHHHL58qgs75CUz7Euw/Wbk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tqO6rjiBujQjhsAWkCkiccoZFQd0MQKgf30HCCec4qrDo3kBcOo5upCRZrSKgi8s7 Q2NTgSf+tWiqRAYIcG/J4wGZw2TdGjY/L2DJIO0vKjyqtzWv7MPm+j1RHsHCO6TvWb RVOxq7Gyz1/SsnfqRvPi7bis4MBekbaegivpD9RA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47596: net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg Date: Wed, 19 Jun 2024 16:54:35 +0200 Message-ID: <2024061920-CVE-2021-47596-cd94@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=2241; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FJwDYdWRMG3a62YG7eGvKHHHL58qgs75CUz7Euw/Wbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH2WeqzVybAhfe2vBjZ+fFnSqm57y/HjY50Db2ePb1 99Y1nL/RkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMRJGJYX7lHUHhPR17GNez ftXLbww4euCMYhPDglXNuQ4KM35erHD5eHEf91EnRcZprgA= 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 use-after-free bug in hclgevf_send_mbx_msg Currently, the hns3_remove function firstly uninstall client instance, and then uninstall acceletion engine device. The netdevice is freed in client instance uninstall process, but acceletion engine device uninstall process still use it to trace runtime information. This causes a use after free problem. So fixes it by check the instance register state to avoid use after free. The Linux kernel CVE team has assigned CVE-2021-47596 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit d8355240cf8f and fixed in 5.10.88 with commit 12512bc8f25b Issue introduced in 5.8 with commit d8355240cf8f and fixed in 5.15.11 with commit 4f4a353f6fe0 Issue introduced in 5.8 with commit d8355240cf8f and fixed in 5.16 with commit 27cbf64a766e 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-2021-47596 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/hns3vf/hclgevf_mbx.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/12512bc8f25b8ba9795dfbae0e9ca57ff13fd542 https://git.kernel.org/stable/c/4f4a353f6fe033807cd026a5de81c67469ff19b0 https://git.kernel.org/stable/c/27cbf64a766e86f068ce6214f04c00ceb4db1af4