{"id":"CVE-2026-139550","state":"PUBLISHED","title":"fbnic: Rework the BMC state pulled from the capabilities message","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbnic: Rework the BMC state pulled from the capabilities message\n\nThe BMC side of the RPC configuration is driven entirely out of the\ncapabilities message: it carries the BMC presence, its MAC addresses and\nthe all-multi request, and the reinit flag raised off it is what gets the\nservice task to reprogram the MACDA and action TCAMs. Pull that out of\nfbnic_fw_parse_cap_resp() into a helper and rework the state it publishes.\n\nThe firmware reports the BMC present as soon as its NC-SI channel is\nenabled, before the BMC has been assigned a MAC address. Such a message\ncarries no BMC MAC array and is rejected with -EINVAL, discarding the rest\nof it. Treat a present BMC with no MAC as absent instead. There is no entry\nto steer traffic to without one, so the BMC paths stay disabled either way,\nand the link speed, FEC and anti-rollback version in the same message are\nno longer thrown out with it.\n\nbmc_present, need_bmc_tcam_reinit, need_bmc_macda_sync and all_multi are\nsingle bit members of one bitfield, so every write to one is a\nread-modify-write of all four. The mailbox writes three of them and the\nservice task writes the other two. Move them into an unsigned long state\nfield driven by the atomic bitops. Putting it at the top of the struct\nkeeps the cost to the word itself: 152 bytes grows to 160, still three\ncachelines, with a 1 byte hole left ahead of anti_rollback_version.\n\nOrder the reinit handoff while there. The mailbox publishes the BMC state\nbefore raising the flag and the service task tests the flag before\nconsuming it, so pair an smp_mb__before_atomic() on the raise with a\ntest_and_clear_bit() on the consume. Claiming the flag atomically also\nkeeps a raise that lands mid-pass instead of dropping it.\n\nCommit all_multi unconditionally rather than only when the firmware\nsupplied the attribute. An absent attribute means the BMC is not asking for\nall-multi, so holding the previous value just kept stale state. It is read\nout of the message only when a BMC is present, so it is never set on its\nown and the three callers that paired it with the presence check can test\nit alone.\n\nfbnic_write_macda() tests the reinit flag to force a MACDA sync and now\nalways sees it clear when reached from fbnic_bmc_rpc_check(). That path is\nunaffected, as fbnic_bmc_rpc_init() unconditionally marks the broadcast\nentry, so the update count is never zero while a BMC is present.","publishedAt":"2026-11-30T13:35:47.893Z","updatedAt":"2026-11-30T13:35:47.893Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"dfbf9c7f4f3085271d8b11d30c8a7304455d1b7f","versionType":"git"},{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"8649098e5709ff31af1ae6b4ecdd5501574cd8c3","versionType":"git"},{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"d261a371e3b74c82c417b1171264dd35f6ddc615","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/meta/fbnic/fbnic.h","drivers/net/ethernet/meta/fbnic/fbnic_fw.c","drivers/net/ethernet/meta/fbnic/fbnic_fw.h","drivers/net/ethernet/meta/fbnic/fbnic_rpc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/meta/fbnic/fbnic.h","drivers/net/ethernet/meta/fbnic/fbnic_fw.c","drivers/net/ethernet/meta/fbnic/fbnic_fw.h","drivers/net/ethernet/meta/fbnic/fbnic_rpc.c"]}],"references":["https://git.kernel.org/stable/c/dfbf9c7f4f3085271d8b11d30c8a7304455d1b7f","https://git.kernel.org/stable/c/8649098e5709ff31af1ae6b4ecdd5501574cd8c3","https://git.kernel.org/stable/c/d261a371e3b74c82c417b1171264dd35f6ddc615"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139550.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139550","state":"PUBLISHED","datePublished":"2026-11-30T13:35:47.893Z","dateUpdated":"2026-11-30T13:35:47.893Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.940Z"},"containers":{"cna":{"title":"fbnic: Rework the BMC state pulled from the capabilities message","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbnic: Rework the BMC state pulled from the capabilities message\n\nThe BMC side of the RPC configuration is driven entirely out of the\ncapabilities message: it carries the BMC presence, its MAC addresses and\nthe all-multi request, and the reinit flag raised off it is what gets the\nservice task to reprogram the MACDA and action TCAMs. Pull that out of\nfbnic_fw_parse_cap_resp() into a helper and rework the state it publishes.\n\nThe firmware reports the BMC present as soon as its NC-SI channel is\nenabled, before the BMC has been assigned a MAC address. Such a message\ncarries no BMC MAC array and is rejected with -EINVAL, discarding the rest\nof it. Treat a present BMC with no MAC as absent instead. There is no entry\nto steer traffic to without one, so the BMC paths stay disabled either way,\nand the link speed, FEC and anti-rollback version in the same message are\nno longer thrown out with it.\n\nbmc_present, need_bmc_tcam_reinit, need_bmc_macda_sync and all_multi are\nsingle bit members of one bitfield, so every write to one is a\nread-modify-write of all four. The mailbox writes three of them and the\nservice task writes the other two. Move them into an unsigned long state\nfield driven by the atomic bitops. Putting it at the top of the struct\nkeeps the cost to the word itself: 152 bytes grows to 160, still three\ncachelines, with a 1 byte hole left ahead of anti_rollback_version.\n\nOrder the reinit handoff while there. The mailbox publishes the BMC state\nbefore raising the flag and the service task tests the flag before\nconsuming it, so pair an smp_mb__before_atomic() on the raise with a\ntest_and_clear_bit() on the consume. Claiming the flag atomically also\nkeeps a raise that lands mid-pass instead of dropping it.\n\nCommit all_multi unconditionally rather than only when the firmware\nsupplied the attribute. An absent attribute means the BMC is not asking for\nall-multi, so holding the previous value just kept stale state. It is read\nout of the message only when a BMC is present, so it is never set on its\nown and the three callers that paired it with the presence check can test\nit alone.\n\nfbnic_write_macda() tests the reinit flag to force a MACDA sync and now\nalways sees it clear when reached from fbnic_bmc_rpc_check(). That path is\nunaffected, as fbnic_bmc_rpc_init() unconditionally marks the broadcast\nentry, so the update count is never zero while a BMC is present."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"dfbf9c7f4f3085271d8b11d30c8a7304455d1b7f","versionType":"git"},{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"8649098e5709ff31af1ae6b4ecdd5501574cd8c3","versionType":"git"},{"version":"20d2e88cc7461b03b97293d62d780a2d4b08ed8b","status":"affected","lessThan":"d261a371e3b74c82c417b1171264dd35f6ddc615","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/meta/fbnic/fbnic.h","drivers/net/ethernet/meta/fbnic/fbnic_fw.c","drivers/net/ethernet/meta/fbnic/fbnic_fw.h","drivers/net/ethernet/meta/fbnic/fbnic_rpc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/meta/fbnic/fbnic.h","drivers/net/ethernet/meta/fbnic/fbnic_fw.c","drivers/net/ethernet/meta/fbnic/fbnic_fw.h","drivers/net/ethernet/meta/fbnic/fbnic_rpc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dfbf9c7f4f3085271d8b11d30c8a7304455d1b7f"},{"url":"https://git.kernel.org/stable/c/8649098e5709ff31af1ae6b4ecdd5501574cd8c3"},{"url":"https://git.kernel.org/stable/c/d261a371e3b74c82c417b1171264dd35f6ddc615"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:47.893Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}