In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: avoid scheduling association deletion twice When forcefully shutting… (CVE-2025-40343)
A critical vulnerability in the Linux kernel's nvmet-fc subsystem involves scheduling association deletion twice during forced port shutdown via the configfs interface. The flaw arises because the system schedules deletion work items without properly preventing duplicate scheduling, potentially leading to double-free scenarios. This occurs as the association list uses RCU synchronization, preventing direct locking and removal, requiring a flag to track deletion status. The vulnerability has been resolved in the Linux kernel.
AI Analysis
Technical Summary
The Linux kernel's nvmet-fc subsystem had a vulnerability where, during a forced shutdown of a port via the configfs interface, two functions—nvmet_port_subsys_drop_link() calling nvmet_port_del_ctrls() and nvmet_disable_port()—both scheduled deletion of all remaining associations. The implementation only checked if an association was about to be removed after scheduling the work item, allowing the same association deletion to be scheduled twice. Because the association list is an RCU list, direct locking and removal are not possible, so a terminating flag is used to prevent double scheduling. This could lead to use-after-free or double-free conditions. The vulnerability is tracked as CVE-2025-40343 and has been resolved in the Linux kernel.
Potential Impact
The vulnerability could lead to critical impacts including complete compromise of confidentiality, integrity, and availability of the affected system due to potential double-free or use-after-free conditions in kernel memory management. This can cause system crashes or allow an attacker to execute arbitrary code with kernel privileges.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by properly using a terminating flag to prevent scheduling association deletion twice. Users should apply the official Linux kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisory for the current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: avoid scheduling association deletion twice When forcefully shutting… (CVE-2025-40343)
Description
A critical vulnerability in the Linux kernel's nvmet-fc subsystem involves scheduling association deletion twice during forced port shutdown via the configfs interface. The flaw arises because the system schedules deletion work items without properly preventing duplicate scheduling, potentially leading to double-free scenarios. This occurs as the association list uses RCU synchronization, preventing direct locking and removal, requiring a flag to track deletion status. The vulnerability has been resolved in the Linux kernel.
CVSS v3.1
Score 9.8critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's nvmet-fc subsystem had a vulnerability where, during a forced shutdown of a port via the configfs interface, two functions—nvmet_port_subsys_drop_link() calling nvmet_port_del_ctrls() and nvmet_disable_port()—both scheduled deletion of all remaining associations. The implementation only checked if an association was about to be removed after scheduling the work item, allowing the same association deletion to be scheduled twice. Because the association list is an RCU list, direct locking and removal are not possible, so a terminating flag is used to prevent double scheduling. This could lead to use-after-free or double-free conditions. The vulnerability is tracked as CVE-2025-40343 and has been resolved in the Linux kernel.
Potential Impact
The vulnerability could lead to critical impacts including complete compromise of confidentiality, integrity, and availability of the affected system due to potential double-free or use-after-free conditions in kernel memory management. This can cause system crashes or allow an attacker to execute arbitrary code with kernel privileges.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by properly using a terminating flag to prevent scheduling association deletion twice. Users should apply the official Linux kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisory for the current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-247j-3qhv-rpc8
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40343"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f8478f3a
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 17:53:21 UTC
Last updated: 09/10/2026, 19:26:52 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.