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 A1A061AAA2F for ; Wed, 26 Feb 2025 01:59:12 +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=1740535152; cv=none; b=QeQ6aDL11MMieRN9DtuFI7nELOeTXoS3wVmmJhv2CNb62fMnM8JevbVw9c88MiqbCHnlT9Lg/Iu54f4OjUGtGGhZbrSe+/k2BtKY7U+S1oRZTiGHE8mkRBXjs7aN7GhpjPGAfv+ObI4XgYDb9h5OCvoR0zy0f47UQZ96bpnmAAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535152; c=relaxed/simple; bh=jlP0u6St0+GsT/zCWiGD8CQogeD3veACPsgtOXa2s3w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fJb6Gixs5EO+OtVuzcOfmPt5VH2ySLHSS0JrEx6f3Duq32JWFybtq3roWqRnJyYEvx8M5B9yu1DyW8vfx4KzUiLU4xaRd6Ituz/Tk98fZDsrZqdyGgj1qLYZGDVDUrAtGH4L7p0jSQDQ6CGLMn05ZcGcJ5zBJMsQ5hYfqOZ4lJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1AIUgbId; 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="1AIUgbId" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76B36C4CEDD; Wed, 26 Feb 2025 01:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535152; bh=jlP0u6St0+GsT/zCWiGD8CQogeD3veACPsgtOXa2s3w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1AIUgbId+kEL7hXRcJj3Qb3LrLbPE2H3cyhM7wMFvCnjgtj/MnUnwaS6aK3RnKxYF eLUKj1gvyY9HWsCh+Ar7rXop7t2bGr1iieHg4yHBIf0k035CkhmRF/JAxb7xBYTyIl JpGaXnQGjVY537Ok6dQ9mwrzj65jw9tHy/Uyg73k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49182: net: hns3: add vlan list lock to protect vlan list Date: Wed, 26 Feb 2025 02:56:27 +0100 Message-ID: <2025022614-CVE-2022-49182-f154@gregkh> X-Mailer: git-send-email 2.48.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=2560; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jlP0u6St0+GsT/zCWiGD8CQogeD3veACPsgtOXa2s3w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Stz6A9f62Cszc2u//H9K9P/ete0donXdjNeLL7xpi o0srjrbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxZGVY0L3xVsTLsmhWoUU/ fnVMFt+o7S7dzTC/WGLhVVb3fRwu3kV8ksb9YdxWvu8A 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: add vlan list lock to protect vlan list When adding port base VLAN, vf VLAN need to remove from HW and modify the vlan state in vf VLAN list as false. If the periodicity task is freeing the same node, it may cause "use after free" error. This patch adds a vlan list lock to protect the vlan list. The Linux kernel CVE team has assigned CVE-2022-49182 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.15.33 with commit 30f0ff7176efe8ac6c55f85bce26ed58bb608758 Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.16.19 with commit 09e383ca97e798f9954189b741af54b5c51e7a97 Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.17.2 with commit f58af41deeab0f45c9c80adf5f2de489ebbac3dd Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.18 with commit 1932a624ab88ff407d1a1d567fe581faa15dc725 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-2022-49182 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/hns3pf/hclge_main.h 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/30f0ff7176efe8ac6c55f85bce26ed58bb608758 https://git.kernel.org/stable/c/09e383ca97e798f9954189b741af54b5c51e7a97 https://git.kernel.org/stable/c/f58af41deeab0f45c9c80adf5f2de489ebbac3dd https://git.kernel.org/stable/c/1932a624ab88ff407d1a1d567fe581faa15dc725