CVE-2025-40297: Linux kernel · net: bridge: fix use-after-free due to MST port state bypass syzbot reported[1]
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel. Users and administrators should apply the official kernel updates that include this patch once available.
Description
A use-after-free vulnerability in the Linux kernel's network bridge code was resolved. The issue arises from a race condition during deletion of an expired forwarding database (fdb) entry when MST (Multiple Spanning Tree) is enabled and VLAN filtering is disabled. This condition allows bypassing the port's disabled state, causing fdb learning to occur improperly while the port is being deleted. The fix involves adding a check on the port's VLAN group pointer to prevent this bypass. The vulnerability has a high severity rating based on CVSS 3.1 metrics.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40297 (opens in a new tab)
- git.kernel.org/stable/c/3b60ce334c1ce8b3fad7e02dcd5ed9f6646477c8 (opens in a new tab)
- git.kernel.org/stable/c/8dca36978aa80bab9d4da130c211db75c9e00048 (opens in a new tab)
- git.kernel.org/stable/c/991fbe1680cd41a5f97c92cd3a3496315df36e4b (opens in a new tab)
- git.kernel.org/stable/c/bf3843183bc3158e5821b46f330c438ae9bd6ddb (opens in a new tab)
- git.kernel.org/stable/c/e19085b2a86addccff33ab8536fc67ebd9d52198 (opens in a new tab)