{"id":"CVE-2026-143270","state":"PUBLISHED","title":"net: bridge: disable MRP ports before the FDB flush in del_nbp()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bridge: disable MRP ports before the FDB flush in del_nbp()\n\ndel_nbp() flushes the port's FDB entries before it unregisters the RX\nhandler. For a normal port, br_stp_disable_port() moves the port to\nBR_STATE_DISABLED before this cleanup.\n\nThat does not hold for an MRP ring port. br_set_state() ignores state\nchanges while BR_MRP_AWARE_BIT is set, so br_stp_disable_port() leaves\nthe port state alone. br_mrp_port_del() then restores forwarding when\nthe bridge is up before clearing the bit. A frame received between\nbr_fdb_cleanup_by_dst() and netdev_rx_handler_unregister() can therefore\ncreate a new FDB entry referencing the dying port. Nothing removes that\nentry before destroy_nbp_rcu() frees the port, so a later frame to the\nlearned MAC can be forwarded through the freed port.\n\nRemove the MRP and CFM instances before disabling the port, so that\nbr_stp_disable_port() actually transitions it to BR_STATE_DISABLED.\nWith CONFIG_BRIDGE_VLAN_FILTERING=y, synchronize_net() in\nnbp_vlan_group_unpublish() also drains receive paths that could still\nlearn with the old state before the final FDB cleanup.\n\nFound through an LLM-assisted source code analysis workflow and\nreproduced on net with KASAN and CONFIG_BRIDGE_VLAN_FILTERING=y in QEMU.\nA diagnostic switchdev module accepts MRP objects and delays the\nNETDEV_CHANGEUPPER callback for 1.5 s, holding del_nbp() after the FDB\ncleanup and before RX handler removal. The reproducer floods the MRP\nport with rotating source MACs, waits for the port's RCU callback\nthrough the module's rcu_barrier(), then sends frames to those MACs\nfrom another port. The unpatched kernel reports:\n\n  BUG: KASAN: slab-use-after-free in br_forward+0xb1/0x820\n  Call Trace:\n   <IRQ>\n   br_forward+0xb1/0x820\n   br_handle_frame_finish+0x148b/0x1e50\n   br_handle_frame+0x90a/0x15c0\n\nWith this patch, three runs of six cycles each reach the delay without\na KASAN report.","publishedAt":"2026-12-03T09:21:12.461Z","updatedAt":"2026-12-03T09:21:12.461Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"6231bf3403117eaaeb8dfa5690da13218cfc5395","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"55dde2d87b03dc30f983c6966dcc100ff5d992d6","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"2aebcdfe5fe8c35baa9f32014093c848cfafffce","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"df3390c2f9ef17a5916905df2abe9a1f236e483f","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bridge/br_if.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bridge/br_if.c"]}],"references":["https://git.kernel.org/stable/c/6231bf3403117eaaeb8dfa5690da13218cfc5395","https://git.kernel.org/stable/c/55dde2d87b03dc30f983c6966dcc100ff5d992d6","https://git.kernel.org/stable/c/2aebcdfe5fe8c35baa9f32014093c848cfafffce","https://git.kernel.org/stable/c/df3390c2f9ef17a5916905df2abe9a1f236e483f","https://git.kernel.org/stable/c/37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143270.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143270","state":"PUBLISHED","datePublished":"2026-12-03T09:21:12.461Z","dateUpdated":"2026-12-03T09:21:12.461Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.363Z"},"containers":{"cna":{"title":"net: bridge: disable MRP ports before the FDB flush in del_nbp()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bridge: disable MRP ports before the FDB flush in del_nbp()\n\ndel_nbp() flushes the port's FDB entries before it unregisters the RX\nhandler. For a normal port, br_stp_disable_port() moves the port to\nBR_STATE_DISABLED before this cleanup.\n\nThat does not hold for an MRP ring port. br_set_state() ignores state\nchanges while BR_MRP_AWARE_BIT is set, so br_stp_disable_port() leaves\nthe port state alone. br_mrp_port_del() then restores forwarding when\nthe bridge is up before clearing the bit. A frame received between\nbr_fdb_cleanup_by_dst() and netdev_rx_handler_unregister() can therefore\ncreate a new FDB entry referencing the dying port. Nothing removes that\nentry before destroy_nbp_rcu() frees the port, so a later frame to the\nlearned MAC can be forwarded through the freed port.\n\nRemove the MRP and CFM instances before disabling the port, so that\nbr_stp_disable_port() actually transitions it to BR_STATE_DISABLED.\nWith CONFIG_BRIDGE_VLAN_FILTERING=y, synchronize_net() in\nnbp_vlan_group_unpublish() also drains receive paths that could still\nlearn with the old state before the final FDB cleanup.\n\nFound through an LLM-assisted source code analysis workflow and\nreproduced on net with KASAN and CONFIG_BRIDGE_VLAN_FILTERING=y in QEMU.\nA diagnostic switchdev module accepts MRP objects and delays the\nNETDEV_CHANGEUPPER callback for 1.5 s, holding del_nbp() after the FDB\ncleanup and before RX handler removal. The reproducer floods the MRP\nport with rotating source MACs, waits for the port's RCU callback\nthrough the module's rcu_barrier(), then sends frames to those MACs\nfrom another port. The unpatched kernel reports:\n\n  BUG: KASAN: slab-use-after-free in br_forward+0xb1/0x820\n  Call Trace:\n   <IRQ>\n   br_forward+0xb1/0x820\n   br_handle_frame_finish+0x148b/0x1e50\n   br_handle_frame+0x90a/0x15c0\n\nWith this patch, three runs of six cycles each reach the delay without\na KASAN report."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"6231bf3403117eaaeb8dfa5690da13218cfc5395","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"55dde2d87b03dc30f983c6966dcc100ff5d992d6","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"2aebcdfe5fe8c35baa9f32014093c848cfafffce","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"df3390c2f9ef17a5916905df2abe9a1f236e483f","versionType":"git"},{"version":"6536993371fab3de4e8379649b60e94d03e6ff37","status":"affected","lessThan":"37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bridge/br_if.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bridge/br_if.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6231bf3403117eaaeb8dfa5690da13218cfc5395"},{"url":"https://git.kernel.org/stable/c/55dde2d87b03dc30f983c6966dcc100ff5d992d6"},{"url":"https://git.kernel.org/stable/c/2aebcdfe5fe8c35baa9f32014093c848cfafffce"},{"url":"https://git.kernel.org/stable/c/df3390c2f9ef17a5916905df2abe9a1f236e483f"},{"url":"https://git.kernel.org/stable/c/37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:12.461Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}