{"api_version":"1","generated_at":"2026-12-04T05:37:29+00:00","cve":"CVE-2026-143270","urls":{"html":"https://cve.report/CVE-2026-143270","api":"https://cve.report/api/cve/CVE-2026-143270.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143270","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143270"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:10","updated_at":"2026-12-04 04:17:46"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/2aebcdfe5fe8c35baa9f32014093c848cfafffce","name":"https://git.kernel.org/stable/c/2aebcdfe5fe8c35baa9f32014093c848cfafffce","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/55dde2d87b03dc30f983c6966dcc100ff5d992d6","name":"https://git.kernel.org/stable/c/55dde2d87b03dc30f983c6966dcc100ff5d992d6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6231bf3403117eaaeb8dfa5690da13218cfc5395","name":"https://git.kernel.org/stable/c/6231bf3403117eaaeb8dfa5690da13218cfc5395","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/df3390c2f9ef17a5916905df2abe9a1f236e483f","name":"https://git.kernel.org/stable/c/df3390c2f9ef17a5916905df2abe9a1f236e483f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8","name":"https://git.kernel.org/stable/c/37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143270","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143270","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6536993371fab3de4e8379649b60e94d03e6ff37 6231bf3403117eaaeb8dfa5690da13218cfc5395 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6536993371fab3de4e8379649b60e94d03e6ff37 55dde2d87b03dc30f983c6966dcc100ff5d992d6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6536993371fab3de4e8379649b60e94d03e6ff37 2aebcdfe5fe8c35baa9f32014093c848cfafffce git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6536993371fab3de4e8379649b60e94d03e6ff37 df3390c2f9ef17a5916905df2abe9a1f236e483f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6536993371fab3de4e8379649b60e94d03e6ff37 37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/bridge/br_if.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6231bf3403117eaaeb8dfa5690da13218cfc5395","status":"affected","version":"6536993371fab3de4e8379649b60e94d03e6ff37","versionType":"git"},{"lessThan":"55dde2d87b03dc30f983c6966dcc100ff5d992d6","status":"affected","version":"6536993371fab3de4e8379649b60e94d03e6ff37","versionType":"git"},{"lessThan":"2aebcdfe5fe8c35baa9f32014093c848cfafffce","status":"affected","version":"6536993371fab3de4e8379649b60e94d03e6ff37","versionType":"git"},{"lessThan":"df3390c2f9ef17a5916905df2abe9a1f236e483f","status":"affected","version":"6536993371fab3de4e8379649b60e94d03e6ff37","versionType":"git"},{"lessThan":"37dfd0efbfffc20a57e41c2eb349ac49b1ca1ff8","status":"affected","version":"6536993371fab3de4e8379649b60e94d03e6ff37","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/bridge/br_if.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The patched function is del_nbp(), reached from br_del_if() by br_del_slave() on RTM_DELLINK and by add_del_if() on SIOCBRDELIF. br_mrp_process() only consumes ETH_P_MRP frames and never deletes a port; the attacker arms the ring locally and injects the source MAC that br_fdb_update() stores in fdb->dst from a veth peer.\nAC:L - The attacker calls br_mrp_add() (br_mrp_switchdev_add() returns 0 when CONFIG_NET_SWITCHDEV is off), sets the bridge IFF_UP so br_mrp_del_impl() restores BR_STATE_FORWARDING, and floods the veth during br_del_if(). That wins the window between br_fdb_delete_by_port() and netdev_rx_handler_unregister(), then transmits to the learned MAC after destroy_nbp_rcu().\nPR:L - rtnetlink_rcv_msg() allows RTM_SETLINK and RTM_DELLINK only through netlink_net_capable(CAP_NET_ADMIN) in the netns user namespace, and add_del_if() checks ns_capable(net->user_ns, CAP_NET_ADMIN). br_mrp_add() adds no further credential check, so unshare -Urn can set BR_MRP_AWARE on its own veth ports.\nUI:N - The attacker creates the bridge, sends IFLA_BRIDGE_MRP, floods the veth peer, and issues the RTM_DELLINK that enters del_nbp(), all from their own processes.\nS:U - release_nbp() kfree()s a host-kernel net_bridge_port, and br_forward() then uses that memory inside the same kernel security authority as any other local privilege escalation.\nC:H - br_forward() and should_deliver() load the freed net_bridge_port's dev, br, flags, state, and backup_port. Reclaiming that slab turns those loads into a read of attacker-chosen contents, which is the usual use-after-free disclosure primitive.\nI:H - __br_forward() copies the freed port's dev into skb->dev and calls dev_queue_xmit(), and br_handle_vlan() follows to->br. A sprayed net_bridge_port therefore supplies the net_device and bridge pointers used on the transmit path.\nA:H - A frame to the learned MAC after destroy_nbp_rcu() frees the port hits a slab use-after-free in br_forward(), called from br_handle_frame_finish() in softirq, which oopses the kernel."}]}],"providerMetadata":{"dateUpdated":"2026-12-04T03:32:01.444Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"net: bridge: disable MRP ports before the FDB flush in del_nbp()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143270","datePublished":"2026-12-03T09:21:12.461Z","dateReserved":"2026-12-03T03:10:28.363Z","dateUpdated":"2026-12-04T03:32:01.444Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:10","lastModifiedDate":"2026-12-04 04:17:46","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143270","Ordinal":"1","Title":"net: bridge: disable MRP ports before the FDB flush in del_nbp()","CVE":"CVE-2026-143270","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143270","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"net: bridge: disable MRP ports before the FDB flush in del_nbp()"}]}}}