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 A370B1E7659 for ; Wed, 4 Sep 2024 19:58:29 +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=1725479909; cv=none; b=DNM8cd44zpNLGSc3uVC6X7E+Tuokbhk6NyQLIq84QWPDME2Zx2S/0YCfQdPRYQ4NH9EM5TPE4dCN17dPZZQs0SSDLjZOfT1Hf6Y2kWi/P4bFatmPJ2VG2zDKIANy5SMsyXJuaWAI81R1I19XgmOon6ZDGfEdLQ/oX9JqzVl+UOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479909; c=relaxed/simple; bh=scRF/nEoc2tqTfoACv5D/jpRZGzl1+aiRIaO0Bx23HQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=stRwrobt2bU8rzX14PThhGTFtIt/o0gNSOqHdHceIyaTDzN/vR8dvzEnpoLoWqDFCesk8ovSKxa9YHcF3j6tAyS7yRzUBCTWiCnprc9gaaab+crtcIfRyKzwffSrkmqSLm51ANIFOoY3Y69TeHuos0Ypx1dphNZ6/Qm/2cxZQUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nO0Vc4yT; 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="nO0Vc4yT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ACA3C4CEC2; Wed, 4 Sep 2024 19:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479909; bh=scRF/nEoc2tqTfoACv5D/jpRZGzl1+aiRIaO0Bx23HQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nO0Vc4yTRP5ZzTGLc2c4h7Aj8VYmFWIfrglwk4j/l0RWQv5jAI1ZiwTBC6SEm962r rGaNsuRQLvGsaZmP0PHLikjxvmk2f6hBd7c34efLoK3YwFPc794aVHndvoRqrt33ag 9goDnywwaTzYiYuL0URRVRU7WEuTmb8ZSp/O4kfk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44995: net: hns3: fix a deadlock problem when config TC during resetting Date: Wed, 4 Sep 2024 21:57:00 +0200 Message-ID: <2024090448-CVE-2024-44995-16e5@gregkh> X-Mailer: git-send-email 2.46.0 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=4261; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=scRF/nEoc2tqTfoACv5D/jpRZGzl1+aiRIaO0Bx23HQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dje4KURrvxZLYzzXUbVkkcTVmttn5S8uXSqn6/Gzw dPHLdq9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiw8wwi3nmxwkZoYeSryWn 2rInyIRO9LhtxrBgY1TWvNDKx1p+b74q/xMxE4tvnJcMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: hns3: fix a deadlock problem when config TC during resetting When config TC during the reset process, may cause a deadlock, the flow is as below: pf reset start │ ▼ ...... setup tc │ │ ▼ ▼ DOWN: napi_disable() napi_disable()(skip) │ │ │ ▼ ▼ ...... ...... │ │ ▼ │ napi_enable() │ ▼ UINIT: netif_napi_del() │ ▼ ...... │ ▼ INIT: netif_napi_add() │ ▼ ...... global reset start │ │ ▼ ▼ UP: napi_enable()(skip) ...... │ │ ▼ ▼ ...... napi_disable() In reset process, the driver will DOWN the port and then UINIT, in this case, the setup tc process will UP the port before UINIT, so cause the problem. Adds a DOWN process in UINIT to fix it. The Linux kernel CVE team has assigned CVE-2024-44995 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 5.4.283 with commit 67492d4d105c Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 5.10.225 with commit fc250eca15bd Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 5.15.166 with commit 195918217448 Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 6.1.107 with commit 6ae2b7d63cd0 Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 6.6.48 with commit fa1d4de7265c Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 6.10.7 with commit de37408d5c26 Issue introduced in 4.15 with commit bb6b94a896d4 and fixed in 6.11-rc4 with commit be5e816d00a5 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-44995 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/hns3_enet.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/67492d4d105c0a6321b00c393eec96b9a7a97a16 https://git.kernel.org/stable/c/fc250eca15bde34c4c8f806b9d88f55bd56a992c https://git.kernel.org/stable/c/195918217448a6bb7f929d6a2ffffce9f1ece1cc https://git.kernel.org/stable/c/6ae2b7d63cd056f363045eb65409143e16f23ae8 https://git.kernel.org/stable/c/fa1d4de7265c370e673583ac8d1bd17d21826cd9 https://git.kernel.org/stable/c/de37408d5c26fc4a296a28a0c96dcb814219bfa1 https://git.kernel.org/stable/c/be5e816d00a506719e9dbb1a9c861c5ced30a109