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 24BE01DD525 for ; Thu, 11 Sep 2025 16:57:58 +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=1757609878; cv=none; b=O3dMnciPzDIebBYSyt6c5bORIvfOvm4bbKs52u9ew0EVrrjYvxy4OfGMSLTDeMzw7FKAusNrRcGE0m0IFQvI9Wg1mrICkZ2tAvuRkrHqmD3VkKJdeir5rD7hPKKiDxHj/CJM3tX2ChNpxzR1BToL9MJzms4p9snwv9Ha7948pD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609878; c=relaxed/simple; bh=atWZTONFC0CPImGqEXD6kGzRmFI9ZpPQtuSX2/awAH8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ThaJRCwoh01N7APJ5Ue2QuJePn5nhOrG4/S9oIPSKu1HQg2PzWIhzUL4eIyLCPpXjEFHovN8Nrgy0RxLN9OotnlT9VyQAvssLBLYECJV/2r51dv3hachjLLRtowWXWmPaXu0tbCFAtdHCtZoFChyBnQkhozdWngxCCAIJ1PGjgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aC8Ovs+Q; 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="aC8Ovs+Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87920C4CEF0; Thu, 11 Sep 2025 16:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609878; bh=atWZTONFC0CPImGqEXD6kGzRmFI9ZpPQtuSX2/awAH8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aC8Ovs+QXcmq8g31a7u3JzXBlxF0SznaVruPkxYgDAVI21kB7xuhItsODKPSaM64e xIL4em7gx1lzuMd1tKtjvpPhaiZf4uFeheL4HV44iTW6i1pnqRDAyvOXuTK7o7ormb qaIxEqNSDogroytWekqKuNeJNOZ2bG3GirTGBNQc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39769: bnxt_en: Fix lockdep warning during rmmod Date: Thu, 11 Sep 2025 18:56:48 +0200 Message-ID: <2025091145-CVE-2025-39769-da91@gregkh> X-Mailer: git-send-email 2.51.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=3707; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hMZ07fEMF9Ho8gjCKrlKFXMzCcCAZbx1iyuZt0gTYt0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/vv6TjpipvG4qexWlUn1nedOObpM4jkv7Ldv+Xr1W MVmKYbsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiInwbDglkL3q/0Luzl+PZl xvznqXPeRVzmjmSYHz3h7qH/6496p74J+PNFdNFFoeIDHAA= 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 lockdep warning during rmmod The commit under the Fixes tag added a netdev_assert_locked() in bnxt_free_ntp_fltrs(). The lock should be held during normal run-time but the assert will be triggered (see below) during bnxt_remove_one() which should not need the lock. The netdev is already unregistered by then. Fix it by calling netdev_assert_locked_or_invisible() which will not assert if the netdev is unregistered. WARNING: CPU: 5 PID: 2241 at ./include/net/netdev_lock.h:17 bnxt_free_ntp_fltrs+0xf8/0x100 [bnxt_en] Modules linked in: rpcrdma rdma_cm iw_cm ib_cm configfs ib_core bnxt_en(-) bridge stp llc x86_pkg_temp_thermal xfs tg3 [last unloaded: bnxt_re] CPU: 5 UID: 0 PID: 2241 Comm: rmmod Tainted: G S W 6.16.0 #2 PREEMPT(voluntary) Tainted: [S]=CPU_OUT_OF_SPEC, [W]=WARN Hardware name: Dell Inc. PowerEdge R730/072T6D, BIOS 2.4.3 01/17/2017 RIP: 0010:bnxt_free_ntp_fltrs+0xf8/0x100 [bnxt_en] Code: 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 48 8b 47 60 be ff ff ff ff 48 8d b8 28 0c 00 00 e8 d0 cf 41 c3 85 c0 0f 85 2e ff ff ff <0f> 0b e9 27 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffa92082387da0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff9e5b593d8000 RCX: 0000000000000001 RDX: 0000000000000001 RSI: ffffffff83dc9a70 RDI: ffffffff83e1a1cf RBP: ffff9e5b593d8c80 R08: 0000000000000000 R09: ffffffff8373a2b3 R10: 000000008100009f R11: 0000000000000001 R12: 0000000000000001 R13: ffffffffc01c4478 R14: dead000000000122 R15: dead000000000100 FS: 00007f3a8a52c740(0000) GS:ffff9e631ad1c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055bb289419c8 CR3: 000000011274e001 CR4: 00000000003706f0 Call Trace: bnxt_remove_one+0x57/0x180 [bnxt_en] pci_device_remove+0x39/0xc0 device_release_driver_internal+0xa5/0x130 driver_detach+0x42/0x90 bus_remove_driver+0x61/0xc0 pci_unregister_driver+0x38/0x90 bnxt_exit+0xc/0x7d0 [bnxt_en] The Linux kernel CVE team has assigned CVE-2025-39769 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 004b5008016a2cc37103bf8d9968573771cd311f and fixed in 6.16.4 with commit 5885d39dce879fbbc953f40e19adb60c29802302 Issue introduced in 6.15 with commit 004b5008016a2cc37103bf8d9968573771cd311f and fixed in 6.17-rc3 with commit 4611d88a37cfc18cbabc6978aaf7325d1ae3f53a 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-39769 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/5885d39dce879fbbc953f40e19adb60c29802302 https://git.kernel.org/stable/c/4611d88a37cfc18cbabc6978aaf7325d1ae3f53a