# CVE-2026-45977: fbnic: close fw_log race between users and teardown

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:35.858Z
- Modified: 2026-06-17T10:52:50.050Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f before 223cfef4812bdfa5ac5c1aa761cdba03cfe2c9cd; from ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f before 5f10ab3643c58a22fbaee92c4701b00fcb4a465d; from ecc53b1b46c892d2e3cf3cf4393b6d219dc4ae3f before ee5492fd88cfc079c19fbeac78e9e53b7f6c04f3; 6.17 (not affected: before 6.17; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.17 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/223cfef4812bdfa5ac5c1aa761cdba03cfe2c9cd> (patch)
- <https://git.kernel.org/stable/c/5f10ab3643c58a22fbaee92c4701b00fcb4a465d> (patch)
- <https://git.kernel.org/stable/c/ee5492fd88cfc079c19fbeac78e9e53b7f6c04f3> (patch)

## Sources

- CVE List: [CVE-2026-45977](https://www.cve.org/CVERecord?id=CVE-2026-45977), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-45977](https://nvd.nist.gov/vuln/detail/CVE-2026-45977), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45977 · Whole record: https://cve.day/CVE-2026-45977.json · Rebuilt by cve.day 2026-11-25T22:59:22.529Z
