Skip to content
Heist/ feed
Unrated

net: bridge: mcast: fix use-after-free of a master VLAN's multicast context

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net: bridge: mcast: fix use-after-free of a master VLAN's multicast context br_multicast_toggle_one_vlan() clears BR_VLFLAG_MCAST_ENABLED under br->multicast_lock before stopping a VLAN's multicast context. That is the teardown handshake: lockless readers gate on the flag through br_multicast_ctx_should_use() -> br_multicast_ctx_vlan_disabled(), so once it is cleared under the lock no reader can arm the context again. For a master VLAN the handshake never runs. __vlan_del() clears BRIDGE_VLAN_INFO_BRENTRY before calling br_vlan_put_master(), so br_multicast_toggle_one_vlan(masterv, false) returns early on !br_vlan_is_brentry(vlan): the flag stays set and br->multicast_lock is never taken. br_vlan_put_master() then drains the context in br_multicast_ctx_deinit() and frees the VLAN through call_rcu(), while a reader still inside rcu_read_lock() sees the context as enabled and re-arms it. The port and port-VLAN branch of the function has no br_vlan_is_brentry() test and flips the flag under br->multicast_lock, so it is not affected. The reader is the bridge transmit path. For a master VLAN br_multicast_rcv() selects brmctx = &vlan->br_mcast_ctx with pmctx = NULL, so IGMP sent to the bridge device re-arms the context's timers after br_multicast_ctx_deinit() has already stopped them. BUG: KASAN: slab-use-after-free in detach_if_pending+0x412/0x4a0 Write of size 8 at addr ffff88810ac39918 by task brmc/601 __mod_tim

Announced Source revision 1
Original source ↗

CVE-2026-80842

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-80842

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "3afaaee2f972aec9059110953adb62fa3cf5c4bd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "22226a2c3b90f15b0925f1464470d3baa6c5677e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "7c54fd8cfbcf371a5ef50db5c53fe6e85fb76686",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "3a0ad4fcdfa0b7dba1876de14a12cb65c8b5ca50",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "c069f29da72324697aa4b7cab5b3647a7d24a575",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "3f4752996735e0628af559aa8da1d872c2fac13b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "57f94d3f4dee8b54d63cefddf1112be4656ef9e6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7b54aaaf53cb784411426c64482af0435f7c845e",
        "lessThan": "50e5c6605cc9c2dd57bd2d1b3459674d19738983",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/bridge/br_multicast.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.220",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.187",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.156",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.108",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.49",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.13",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.3",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/bridge/br_multicast.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-80842

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#34858 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement