CVE-2025-38248: bridge: mcast: Fix use-after-free during router port configuration
Vulnerability summary
CVE-2025-38248 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 22.7% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 59 · Related 48Timeline
- 09-07-2025PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: bridge: mcast: Fix use-after-free during router port configuration The bridge maintains a global list of ports behind which a multicast router resides. The list is consulted during forwarding to ensure multicast packets are forwarded to these ports even if the ports are not member in the matching MDB entry. When per-VLAN multicast snooping is enabled, the per-port multicast context is disabled on each port and the port is removed from the global router port list: # ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1 # ip link add name dummy1 up master br1 type dummy # ip link set dev dummy1 type bridge_slave mcast_router 2 $ bridge -d mdb show | grep router router ports on br1: dummy1 # ip link set dev br1 type bridge mcast_vlan_snooping 1 $ bridge -d mdb show | grep router However, the port can be re-added to the global list even when per-VLAN multicast snooping is enabled: # ip link set dev dummy1 type bridge_slave mcast_router 0 # ip link set dev dummy1 type bridge_slave mcast_router 2 $ bridge -d mdb show | grep router router ports on br1: dummy1 Since commit 4b30ae9adb04 ("net: bridge: mcast: re-implement br_multicast_{enable, disable}_port functions"), when per-VLAN multicast snooping is enabled, multicast disablement on a port will disable the per-{port, VLAN} multicast contexts and not the per-port one. As a result, a port will remain in the global router port list even after it is deleted. This will lead to a use-after-free [1] when the list is traversed (when adding a new port to the list, for example): # ip link del dev dummy1 # ip link add name dummy2 up master br1 type dummy # ip link set dev dummy2 type bridge_slave mcast_router 2 Similarly, stale entries can also be found in the per-VLAN router port list. When per-VLAN multicast snooping is disabled, the per-{port, VLAN} contexts are disabled on each port and the port is removed from the per-VLAN router port list: # ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1 mcast_vlan_snooping 1 # ip link add name dummy1 up master br1 type dummy # bridge vlan add vid 2 dev dummy1 # bridge vlan global set vid 2 dev br1 mcast_snooping 1 # bridge vlan set vid 2 dev dummy1 mcast_router 2 $ bridge vlan global show dev br1 vid 2 | grep router router ports: dummy1 # ip link set dev br1 type bridge mcast_vlan_snooping 0 $ bridge vlan global show dev br1 vid 2 | grep router However, the port can be re-added to the per-VLAN list even when per-VLAN multicast snooping is disabled: # bridge vlan set vid 2 dev dummy1 mcast_router 0 # bridge vlan set vid 2 dev dummy1 mcast_router 2 $ bridge vlan global show dev br1 vid 2 | grep router router ports: dummy1 When the VLAN is deleted from the port, the per-{port, VLAN} multicast context will not be disabled since multicast snooping is not enabled on the VLAN. As a result, the port will remain in the per-VLAN router port list even after it is no longer member in the VLAN. This will lead to a use-after-free [2] when the list is traversed (when adding a new port to the list, for example): # ip link add name dummy2 up master br1 type dummy # bridge vlan add vid 2 dev dummy2 # bridge vlan del vid 2 dev dummy1 # bridge vlan set vid 2 dev dummy2 mcast_router 2 Fix these issues by removing the port from the relevant (global or per-VLAN) router port list in br_multicast_port_ctx_deinit(). The function is invoked during port deletion with the per-port multicast context and during VLAN deletion with the per-{port, VLAN} multicast context. Note that deleting the multicast router timer is not enough as it only takes care of the temporary multicast router states (1 or 3) and not the permanent one (2). [1] BUG: KASAN: slab-out-of-bounds in br_multicast_add_router.part.0+0x3f1/0x560 Write of size 8 at addr ffff888004a67328 by task ip/384 [...] Call Trace: <TASK> dump_stack ---truncated---
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu134 products
- linux< 5.15.0-170.180 | < 6.8.0-100.100
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1100.107 | < 6.8.0-1046.49
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Redhat58 products
- bpftool< 0:7.3.0-427.116.1.el9_4
- bpftool-debuginfo< 0:7.3.0-427.116.1.el9_4
- kernel< 0:5.14.0-427.116.1.el9_4
- kernel-64k< 0:5.14.0-427.116.1.el9_4
- kernel-64k-core< 0:5.14.0-427.116.1.el9_4
Chainguard5 products
- linux-aws-6.12< 6.12.72-r1 | < 6.12.72-r0 | < 6.12.65-r0 | < 6.12.77-r0 | < 6.12.62-r0 | < 6.12.74-r1 | < 6.12.77-r1 | < 6.12.69-r0 | < 6.12.76-r0 | < 6.12.70-r0 | < 6.12.74-r0 | < 6.12.65-r2 | < 6.12.65-r1 | < 6.12.62-r2 | < 6.12.78-r0 | < 6.12.71-r0 | < 6.12.60-r4 | < 6.12.66-r0 | < 6.12.68-r0 | < 6.12.67-r0 | < 6.12.63-r0 | < 6.12.80-r0 | < 6.12.62-r1 | < 6.12.68-r1 | < 6.12.77-r2
- linux-azure-6.12< 6.12.65-r2 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.66-r0 | < 6.12.65-r1 | < 6.12.70-r0 | < 6.12.62-r2 | < 6.12.74-r1 | < 6.12.76-r0 | < 6.12.77-r2 | < 6.12.62-r0 | < 6.12.77-r0 | < 6.12.65-r4 | < 6.12.67-r0 | < 6.12.60-r4 | < 6.12.65-r3 | < 6.12.63-r0 | < 6.12.78-r0 | < 6.12.71-r0 | < 6.12.68-r0 | < 6.12.77-r1 | < 6.12.74-r0 | < 6.12.62-r1 | < 6.12.60-r3 | < 6.12.72-r0
- linux-gcp-6.12< 6.12.60-r4 | < 6.12.60-r3 | < 6.12.77-r1 | < 6.12.68-r1 | < 6.12.65-r1 | < 6.12.63-r0 | < 6.12.78-r0 | < 6.12.65-r0 | < 6.12.65-r2 | < 6.12.74-r1 | < 6.12.72-r0 | < 6.12.68-r0 | < 6.12.66-r0 | < 6.12.74-r0 | < 6.12.71-r0 | < 6.12.76-r0 | < 6.12.69-r0 | < 6.12.62-r0 | < 6.12.77-r0 | < 6.12.70-r0 | < 6.12.80-r0 | < 6.12.67-r0 | < 6.12.62-r2 | < 6.12.62-r1 | < 6.12.77-r2
- linux-qemu-6.12< 6.12.66-r0 | < 6.12.78-r0 | < 6.12.65-r2 | < 6.12.76-r0 | < 6.12.77-r0 | < 6.12.67-r0 | < 6.12.71-r0 | < 6.12.74-r1 | < 6.12.74-r0 | < 6.12.69-r0 | < 6.12.72-r0 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.70-r0 | < 6.12.77-r1 | < 6.12.68-r0 | < 6.12.80-r0
- linux-vmware-6.12< 6.12.66-r0 | < 6.12.68-r1 | < 6.12.68-r0 | < 6.12.69-r0 | < 6.12.67-r0 | < 6.12.77-r0 | < 6.12.65-r1 | < 6.12.76-r0 | < 6.12.77-r2 | < 6.12.72-r0 | < 6.12.80-r0 | < 6.12.65-r2 | < 6.12.70-r0 | < 6.12.77-r1 | < 6.12.71-r0 | < 6.12.74-r0 | < 6.12.78-r0 | < 6.12.74-r1
Linux2 products
- linux≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < 5df2d582f6e8a81e7ab066464845b38b2fb04094 | ≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < 7bb080340bb5ffc928f47c563a9ca1528ce54911 | ≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < 4d3c2a1d4c7c33103f1ddfdbc5cfe1ea4f6d0dcd | ≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < bdced577da71b118b6ed4242ebd47f81bf54d406 | ≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < f05a4f9e959e0fc098046044c650acf897ea52d2 | ≥ 2796d846d74a18cc6563e96eff8bf28c5e06f912, < 7544f3f5b0b58c396f374d060898b5939da31709 | 5.15
- linux_kernel≥ 5.15, < 6.15.5 | 6.16:rc1 | 6.16:rc2 | 6.16:rc3
Debian1 product
- linuxAll versions (No fix recorded) | < 6.12.69-1 | < 6.16.3-1
5 vendors · 200 products · Showing 200 of 220