CVE-2026-139550: fbnic: Rework the BMC state pulled from the capabilities message
In the Linux kernel, the following vulnerability has been resolved:
fbnic: Rework the BMC state pulled from the capabilities message
The BMC side of the RPC configuration is driven entirely out of the capabilities message: it carries the BMC presence, its MAC addresses and the all-multi request, and the reinit flag raised off it is what gets the service task to reprogram the MACDA and action TCAMs. Pull that out of fbnicfwparsecapresp() into a helper and rework the state it publishes.
The firmware reports the BMC present as soon as its NC-SI channel is enabled, before the BMC has been assigned a MAC address. Such a message carries no BMC MAC array and is rejected with -EINVAL, discarding the rest of it. Treat a present BMC with no MAC as absent instead. There is no entry to steer traffic to without one, so the BMC paths stay disabled either way, and the link speed, FEC and anti-rollback version in the same message are no longer thrown out with it.
bmcpresent, needbmctcamreinit, needbmcmacdasync and allmulti are single bit members of one bitfield, so every write to one is a read-modify-write of all four. The mailbox writes three of them and the service task writes the other two. Move them into an unsigned long state field driven by the atomic bitops. Putting it at the top of the struct keeps the cost to the word itself: 152 bytes grows to 160, still three cachelines, with a 1 byte hole left ahead of antirollbackversion.
Order the reinit handoff while there. The mailbox publishes the BMC state before raising the flag and the service task tests the flag before consuming it, so pair an smpmbbeforeatomic() on the raise with a testandclearbit() on the consume. Claiming the flag atomically also keeps a raise that lands mid-pass instead of dropping it.
Commit allmulti unconditionally rather than only when the firmware supplied the attribute. An absent attribute means the BMC is not asking for all-multi, so holding the previous value just kept stale state. It is read out of the message only when a BMC is present, so it is never set on its own and the three callers that paired it with the presence check can test it alone.
fbnicwritemacda() tests the reinit flag to force a MACDA sync and now always sees it clear when reached from fbnicbmcrpccheck(). That path is unaffected, as fbnicbmcrpcinit() unconditionally marks the broadcast entry, so the update count is never zero while a BMC is present.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this condition?
Systems using the fbnic driver with a BMC whose NC-SI channel is enabled before the BMC has been assigned a MAC address are exposed. In that state, firmware can report the BMC as present while supplying no BMC MAC array.
What happens when the affected capabilities message is received?
The message can be rejected with -EINVAL because it lacks a BMC MAC array, causing the rest of the capabilities information in that message to be discarded. This can also discard reported link speed, FEC, and anti-rollback version information.
How does the fix handle a BMC reported without a MAC address?
It treats a BMC reported as present but without a MAC address as absent. The BMC traffic paths remain disabled because there is no MAC entry available to steer traffic to, while the other capabilities data can still be processed.