Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-38248: Use-after-free in Linux kernel bridge multicast router-port configuration

Published Jul 9, 2025 · Updated 5 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.28%13th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Linux
IdentifiersCVE-2025-38248CWE-416 · Use After Free

CVE-2025-38248 is a use-after-free vulnerability in the Linux kernel bridge multicast subsystem. Changes to per-VLAN multicast snooping and multicast router settings can reinsert ports into global or per-VLAN router-port lists associated with inactive multicast contexts. Subsequent deletion of a port or its VLAN membership can free the corresponding context without removing its router-port list entry. Traversing the list afterward, such as when adding another multicast router port, accesses freed memory. The affected path includes br_multicast_add_router(), with diagnostics showing an eight-byte invalid write. The fix ensures that br_multicast_port_ctx_deinit() removes entries from the appropriate router-port list during both port and VLAN teardown.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Stale multicast router-port entries cause kernel memory corruption and can crash the system, resulting in denial of service. The vulnerability's CVSS v3 assessment indicates potential high confidentiality, integrity, and availability impacts from local exploitation. Privilege escalation or broader kernel compromise is a potential consequence, but a working privilege-escalation exploit is not established by the available technical details.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict bridge, port, VLAN, and multicast-router configuration to trusted administrators. Avoid re-enabling permanent multicast router entries in inactive global or per-VLAN multicast contexts after changing per-VLAN snooping mode, followed by deletion of the corresponding port or VLAN membership. Disabling per-VLAN snooping alone is not a sufficient workaround because stale entries can occur in either mode. No formal vendor workaround is established.

Remediation

Patch, then assume compromise.

Install the vendor-provided kernel update containing the fix to br_multicast_port_ctx_deinit(), and reboot into the corrected kernel. The fix explicitly removes the port from its global or per-VLAN router-port list when the associated multicast context is destroyed. Removing the multicast router timer alone is insufficient because it does not clean up permanent router state 2. Example corrected package versions include Debian trixie linux 6.12.69-1, RHEL 8.10 kernel 4.18.0-553.107.1.el8_10, RHEL 9.6 EUS kernel 5.14.0-570.100.1.el9_6, and RHEL 10.0 EUS kernel 6.12.0-55.65.1.el10_0. Use the applicable vendor update or a later corrected build for the installed product and support channel.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2025-38248_EXPRepository contains a single C proof-of-concept (poc.c) plus a minimal README claiming CVE-2025-38248 research. poc.c is a local Linux kernel trigger that: - Creates new user, mount, and network namespaces (unshare(CLONE_NEWUSER|CLONE_NEWNS|CLONE_NEWNET)) and maps the caller to uid/gid 0 inside the namespace via /proc/self/{setgroups,uid_map,gid_map}. - Uses raw rtnetlink (AF_NETLINK, NETLINK_ROUTE) to craft RTM_NEWLINK/RTM_DELLINK messages, emulating a subset of `ip link` operations. It creates a bridge (br1) with vlan_filtering and mcast_snooping enabled, creates a dummy interface (dummy1) enslaved to the bridge, toggles bridge_slave multicast router settings, enables bridge multi boolopt mcast_vlan_snooping, then deletes dummy1. - After deletion, it performs a heap spray by allocating 19 key objects using SYS_add_key("user", description, "data", 4, KEY_SPEC_SESSION_KEYRING) with a description padded to a chosen size (1024 bytes), likely to reclaim/fill freed kernel heap slots. - Finally, it creates a second dummy interface (dummy2) and applies bridge_slave settings again, presumably to re-trigger access to a freed/overwritten object. No network callbacks, C2, or remote endpoints are present; the only fingerprintable targets are local procfs paths and kernel interfaces (rtnetlink, keyrings). The code does not include privilege escalation primitives (no cred overwrite, no ROP, no shell), so it is best characterized as a kernel bug trigger + heap grooming PoC rather than a complete exploit.guard-wait · Disclosed Jan 22, 2026 · c · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2025-38248 exploited in the wild?
As of Nov 23, 2026, Mallory has no reports of CVE-2025-38248 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-38248?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-38248, the earliest disclosed Jan 22, 2026.
Is there a patch for CVE-2025-38248?
Install the vendor-provided kernel update containing the fix to br_multicast_port_ctx_deinit(), and reboot into the corrected kernel. The fix explicitly removes the port from its global or per-VLAN router-port list when the associated multicast context is destroyed.
What products are affected by CVE-2025-38248?
Linux Kernel.
How severe is CVE-2025-38248?
CVE-2025-38248 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.28% (13th percentile) as of Nov 23, 2026.
Activity feed

Recent activity

22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Oct 22, 2026Rocky Linux 8.6 [CIQ] Security Update: bpftool / kernel / kern... | Tenable®A vulnerability covered by the CIQ LTS 8.6 kernel security update. It is cited as the source of the displayed CVSS v2 score of 6.8. The plugin's collective exploit-availability statement does not establish exploit availability for this specific CVE.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: linux: security update to 6.12.69-1 | Tenable®A use-after-free vulnerability in Linux kernel bridge multicast handling. Changes to multicast router configuration can leave stale entries in global or per-VLAN router port lists after port or VLAN deletion. Subsequent list traversal can access freed memory. The fix removes the port from the relevant router list in br_multicast_port_ctx_deinit(). The advisory assigns a CVSS v3 score of 7.8, with local access and low privileges required and potential high impacts to confidentiality, integrity, and availability. Echo recommends updating linux and related packages to version 6.12.69-1 or later.Read more ↗redhat accessNews · Apr 22, 2026RHSA-2026:9512 - Security Advisory - Red Hat Customer PortalA Linux kernel use-after-free vulnerability in bridge multicast initialization via br_multicast_port_ctx_init.Read more ↗redhat accessNews · Apr 22, 2026RHSA-2026:9644 - Security Advisory - Red Hat Customer PortalA Linux kernel use-after-free vulnerability in bridge multicast handling within br_multicast_port_ctx_init.Read more ↗
+10 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.