Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DBEA43FF88C for ; Wed, 27 May 2026 12:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884837; cv=none; b=q7/sjeYdWF27/k7ZDAGEPaxSBjX4QYiIu09JwwrdpnSHcrIspVN6lymovOUXY59DsgAKxnWURk8xDnBfH4bRQ3Q2Oi64f4FCDehghgYkoxXrncviTDH7XD26jhFvUaG2z8Y8e4rtcaeZEIH7SFQFb2a+hhrNnG+0vaf4E8ruPgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884837; c=relaxed/simple; bh=9WHUTw0exE7TSdpmByQEITFVleZSvFj2vLQIufuAnrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aZfvI9OO77DGdLOa/IA0Me3iuyVUF+HEROcO3Yh8XflUe74wK+E5Ij4iW0waxWw4CKV8xeNbcO2Sov/4DkXCqjF8pQQ5blK2tAxABjDyI7Dmcb7keS4j73yT/d6jsYpH7KFUJEr/UfrFyZQpZPf6BeEsg53vOL7zNOhKbxLEo9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CqDfdiv1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CqDfdiv1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 384281F000E9; Wed, 27 May 2026 12:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884835; bh=WE8NRtiQzUdlG9ndhtWGCldAbmGFbVTSwutN8ug53IY=; h=From:To:Cc:Subject:Date:Reply-To; b=CqDfdiv1vYDc5Lan1KjjfhRc0ScvTNT+1N2oj/AHxLeawA0KjdXLJDfvoii2vQa5K VnOeLQS6QF0zsZyvyuTI4VGfRojiKXd0fU5M87TFHsvo5QRSxs9E/JXPHaxCHaXkN9 wHE2W4NWA0EUR6YViPu4gTkMDyr8q49EbDljHol8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45977: fbnic: close fw_log race between users and teardown Date: Wed, 27 May 2026 14:20:19 +0200 Message-ID: <2026052737-CVE-2026-45977-0664@gregkh> X-Mailer: git-send-email 2.54.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=3103; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9P4BE5jDocbXdATDNf5f2WRePeKprVcybcKcul5mITc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD2X50t8KrZzgKyn7/qXNSam9N5WeXjzt7/6eNcG9e 15dv8DbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1S2GBdcj10bksElNkeG9 /J/5gUzJhaftjAxzRX1qnd4mb1rjIfHt6gv7Ne+SdRU3AQA= 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: fbnic: close fw_log race between users and teardown Fixes a theoretical race on fw_log between the teardown path and fw_log write functions. fw_log is written inside fbnic_fw_log_write() and can be reached from the mailbox handler fbnic_fw_msix_intr(), but fw_log is freed before IRQ/MBX teardown during cleanup, resulting in a potential data race of dereferencing a freed/null variable. Possible Interleaving Scenario: CPU0: fbnic_fw_msix_intr() // Entry fbnic_fw_log_write() if (fbnic_fw_log_ready()) // true ... preempt ... CPU1: fbnic_remove() // Entry fbnic_fw_log_free() vfree(log->data_start); log->data_start = NULL; CPU0: continues, walks log->entries or writes to log->data_start The initialization also has an incorrect order problem, as the fw_log is currently allocated after MBX setup during initialization. Fix the problems by adjusting the synchronization order to put initialization in place before the mailbox is enabled, and not cleared until after the mailbox has been disabled. The Linux kernel CVE team has assigned CVE-2026-45977 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f and fixed in 6.18.14 with commit 223cfef4812bdfa5ac5c1aa761cdba03cfe2c9cd Issue introduced in 6.17 with commit ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f and fixed in 6.19.4 with commit 5f10ab3643c58a22fbaee92c4701b00fcb4a465d Issue introduced in 6.17 with commit ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f and fixed in 7.0 with commit ee5492fd88cfc079c19fbeac78e9e53b7f6c04f3 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-2026-45977 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/meta/fbnic/fbnic_fw_log.c drivers/net/ethernet/meta/fbnic/fbnic_pci.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/223cfef4812bdfa5ac5c1aa761cdba03cfe2c9cd https://git.kernel.org/stable/c/5f10ab3643c58a22fbaee92c4701b00fcb4a465d https://git.kernel.org/stable/c/ee5492fd88cfc079c19fbeac78e9e53b7f6c04f3