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 B688D2F693F for ; Tue, 9 Dec 2025 04:10: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=1765253452; cv=none; b=FLewDLTIuEmcjLYfysQXY8ZOJQ5Tt72LkuLoAPXTuB1COUbJ1ZX0IIlXvKJ9/QnFmmyV+OI1ViGXqZIq9mMdgGOdIPY+Nt7wmuxFzni/L9aGHeIepiEfex22yXSvkRRvgsX1GgnjziFZYcjTrnL23KiugBr/aSfM+iErjv3jOVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253452; c=relaxed/simple; bh=/hN3FHK7SIFuLH98+WYCGAIcUFZ4Uv9tBKg6v5PwbqE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tBWDmFpKqgShn6PZnVtYu3lxDZqQSJglaqAjU9NHmICZuXc9RCWr8rjLs/8ijiataQpUSRnEbZlT9XQHaPAuk3EbR0M8M/HAVhEVu2+ZDkImnBCwT+i6EkefFuAAffALwAHvMIIN6Tk3SM8XFjZhWtans99HNrwa2v0j11A8iag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z5sX96Ph; 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="Z5sX96Ph" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EC02C4CEF5; Tue, 9 Dec 2025 04:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253452; bh=/hN3FHK7SIFuLH98+WYCGAIcUFZ4Uv9tBKg6v5PwbqE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Z5sX96PhrwxKmmT4P7y6T0NeDiVt9AqB54VPEKzT1VA7RPGoh9vUUiNl7m0oKXY8k bdk1oHuCKrLhIsezgbXXSrUTAfPdawKon2TWe5TRe2V4S1oX7KIOkEXj2ABnU39nAO xUZafiiLiT1Pw4q8wK3uAXgf70uB8TjJxSplR7i0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40330: bnxt_en: Shutdown FW DMA in bnxt_shutdown() Date: Tue, 9 Dec 2025 13:10:12 +0900 Message-ID: <2025120910-CVE-2025-40330-d2a2@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2170; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bNi08h5itcUgHZqpPx4VbbBBOKOS1dCx6AFHmbPJCC4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5W4sgtnzijQ8jOrf7f4wNvOl9N+TRaawalhu43FV 2tlr+iJjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIZTOGBaeXf33QrVCafDE2 M8LzR+W1M3devWGYX3H21cNTG2ZKlx8+mZ0vy/vl0JonWwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: bnxt_en: Shutdown FW DMA in bnxt_shutdown() The netif_close() call in bnxt_shutdown() only stops packet DMA. There may be FW DMA for trace logging (recently added) that will continue. If we kexec to a new kernel, the DMA will corrupt memory in the new kernel. Add bnxt_hwrm_func_drv_unrgtr() to unregister the driver from the FW. This will stop the FW DMA. In case the call fails, call pcie_flr() to reset the function and stop the DMA. The Linux kernel CVE team has assigned CVE-2025-40330 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 24d694aec139e9e0a31c60993db79bd8ad575afe and fixed in 6.17.8 with commit 1a8a15c3f71d1199d510ccba4bc201cbd2204048 Issue introduced in 6.13 with commit 24d694aec139e9e0a31c60993db79bd8ad575afe and fixed in 6.18 with commit bc7208ca805ae6062f353a4753467d913d963bc6 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-2025-40330 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/broadcom/bnxt/bnxt.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/1a8a15c3f71d1199d510ccba4bc201cbd2204048 https://git.kernel.org/stable/c/bc7208ca805ae6062f353a4753467d913d963bc6