CVE-2025-40297 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net: bridge: fix use-after-free due to MST port state bypass syzbot reported[1] a use-after-free when deleting an expired fdb. It is due to a race condition between learning still happening and a port being deleted, after all its fdbs have been flushed. The port's state has been toggled to disabled so no learning should happen at that time, but if we have MST enabled, it will bypass the port's state, that together with VLAN filtering disabled can lead to fdb learning at a time when it shouldn't happen while the port is being deleted. VLAN filtering must be disabled because we flush the port VLANs when it's being deleted which will stop learning. This fix adds a check for the port's vlan group which is initialized to NULL when the port is getting deleted, that avoids the port state bypass. When MST is enabled there would be a minimal new overhead in the fast-path because the port's vlan group pointer is cache-hot. [1] https://syzkaller.appspot.com/bug?extid=dd280197f0f7ab3917be
A use-after-free vulnerability has been identified in the Linux kernel's bridge component. This issue arises from a race condition between the learning process and the deletion of a port, particularly after its forwarding database (FDB) entries have been flushed. When a port is deleted, its state is set to disabled, halting any learning processes. However, with Multiple Spanning Tree (MST) mode enabled, this state can be bypassed, potentially allowing FDB learning to occur at inappropriate times, especially when the port is being removed. The vulnerability is exacerbated when VLAN filtering is disabled, as this allows the FDB learning issue to manifest. The problem has been addressed by introducing a check for the port's VLAN group, which is set to NULL during the deletion process, thereby preventing the state bypass. This vulnerability affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3b60ce334c1ce8b3fad7e02dcd5ed9f6646477c8 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8dca36978aa80bab9d4da130c211db75c9e00048 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/991fbe1680cd41a5f97c92cd3a3496315df36e4b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/bf3843183bc3158e5821b46f330c438ae9bd6ddb | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e19085b2a86addccff33ab8536fc67ebd9d52198 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion