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 B54F52417F2 for ; Tue, 20 May 2025 15:22:25 +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=1747754545; cv=none; b=TqmE+opESGe8Ts2cGieyv/TqubanFXGEl0Y/HOMhfjn+XWaKVBZ2W557XRAv95VYtnl1mGb422q60fCxND9KAI9F81Jh0CPSyvF+XVgDyjLJAxha7+7QhL+33gwp43MKuvK8AMJDvFxZCaO8uKDPn9zIRo0B+SbH8lPTJME8Jkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754545; c=relaxed/simple; bh=SHyTagSCMgcdxP0B5lRODZvLscqJbYFeu/Lol5PY7OA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QZ8iOTuIzsoUTB8+4vGJVsz4fZ45ehAztjbnhropjRP73M5qtn6KpPxQcOiOMa1nrzMoroYT5zA+DSeIQKxKp2cJlPISB4XNIw/ZdGuohp2WARpJGp//gQLCEKjJgqq59GmitvZfhOsu0U+flEYD75zEtRlIy2ODrPDLtp/u0Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DvriOvvZ; 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="DvriOvvZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3A10C4CEEA; Tue, 20 May 2025 15:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754545; bh=SHyTagSCMgcdxP0B5lRODZvLscqJbYFeu/Lol5PY7OA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DvriOvvZjrOufvLNN5tgLBLSJjebv7i10CIcqPXsE/y8nWk99+cC9uS/mw4Av5aW2 +ogcMd1HJ2R8FVge6SfxQdwjnmTmRYsfRjOZmGZhAnUFWQ2UaLcbErDhnDgRY4xjIo eycqm3TjLTsEVRiAlfaDcvjrpMnqHThUseBOMqQw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37895: bnxt_en: Fix error handling path in bnxt_init_chip() Date: Tue, 20 May 2025 17:21:52 +0200 Message-ID: <2025052053-CVE-2025-37895-7dfb@gregkh> X-Mailer: git-send-email 2.49.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=2651; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wohcjed4b1ACNSDefJbpKVTHDyxz3xyJi+pvWA2nWRQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk68wSn+WYlG3s3TKoXcrzttO2R6XSG6PzMhbte1W7a0 tE+lft2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEkYlhvqPvh9ZFz1/8tE+2 lPU9qMnm55cYxjDPXMiVuz7loemx362aUZG3b329rvIdAA== 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: Fix error handling path in bnxt_init_chip() WARN_ON() is triggered in __flush_work() if bnxt_init_chip() fails because we call cancel_work_sync() on dim work that has not been initialized. WARNING: CPU: 37 PID: 5223 at kernel/workqueue.c:4201 __flush_work.isra.0+0x212/0x230 The driver relies on the BNXT_STATE_NAPI_DISABLED bit to check if dim work has already been cancelled. But in the bnxt_open() path, BNXT_STATE_NAPI_DISABLED is not set and this causes the error path to think that it needs to cancel the uninitalized dim work. Fix it by setting BNXT_STATE_NAPI_DISABLED during initialization. The bit will be cleared when we enable NAPI and initialize dim work. The Linux kernel CVE team has assigned CVE-2025-37895 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.10 with commit f697217f980ffc796c72c34dbf7d59a6b1996888 and fixed in 6.12.28 with commit e039b00ddbfeaa0dc59b8659be114f1a1b37c5bf Issue introduced in 6.13 with commit 40452969a50652e3cbf89dac83d54eebf2206d27 and fixed in 6.14.6 with commit 21116727f452474502ee74f956d5e7466103e19b Issue introduced in 6.13 with commit 40452969a50652e3cbf89dac83d54eebf2206d27 and fixed in 6.15-rc5 with commit 9ab7a709c926c16b4433cf02d04fcbcf35aaab2b 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-37895 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/e039b00ddbfeaa0dc59b8659be114f1a1b37c5bf https://git.kernel.org/stable/c/21116727f452474502ee74f956d5e7466103e19b https://git.kernel.org/stable/c/9ab7a709c926c16b4433cf02d04fcbcf35aaab2b