CVE-2025-38248
BaseFortify
Publication date: 2025-07-09
Last updated on: 2026-03-17
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-416 | The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free bug in the Linux kernel's bridge multicast router port management. When per-VLAN multicast snooping is enabled or disabled, ports can incorrectly remain in the global or per-VLAN router port lists even after they should have been removed. This stale entry leads to a use-after-free condition when the kernel later traverses these lists, such as when adding new ports. The issue arises because the multicast contexts are not properly disabled or cleaned up during port or VLAN deletion, causing the kernel to access freed memory.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to access freed memory, leading to potential kernel crashes or instability (use-after-free). This can result in denial of service or unpredictable behavior in systems using the affected bridge multicast features, impacting network reliability and availability.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by inspecting the bridge multicast router port lists to find stale or unexpected entries that remain after port or VLAN changes. You can use the following commands to check the router ports on a bridge and VLAN: 1) To show router ports on a bridge: `bridge -d mdb show | grep router` 2) To show router ports on a VLAN: `bridge vlan global show dev <bridge_name> vid <vlan_id> | grep router` Look for ports that remain listed even after deletion or configuration changes, which indicates the presence of the issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include carefully managing bridge and VLAN multicast router port configurations to avoid stale entries. Specifically, after deleting ports or VLANs, verify that the ports are removed from the global and per-VLAN router port lists using the commands mentioned above. Avoid re-adding ports to multicast router lists when per-VLAN multicast snooping is enabled or disabled incorrectly. Applying the patch that fixes the removal of ports from the relevant router port lists in the Linux kernel is the definitive fix.