Skip to main content

Linux Kernel CVE-2025-40343

CRITICAL
2025-12-09 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Critical
Disputed · 9.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Sources disagree (Medium–Critical)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
4.1 MEDIUM

Triggered locally via privileged configfs port-shutdown (AV:L/PR:H), depends on a scheduling race (AC:H), and yields a kernel crash/memory corruption with availability impact only (A:H, C/I:N).

3.1 AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
6.4 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Red Hat
5.2 MEDIUM
qualitative

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 07:35 vuln.today
CVE Published
Dec 09, 2025 - 16:17 cve.org
CRITICAL 9.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

nvmet-fc: avoid scheduling association deletion twice

When forcefully shutting down a port via the configfs interface, nvmet_port_subsys_drop_link() first calls nvmet_port_del_ctrls() and then nvmet_disable_port(). Both functions will eventually schedule all remaining associations for deletion.

The current implementation checks whether an association is about to be removed, but only after the work item has already been scheduled. As a result, it is possible for the first scheduled work item to free all resources, and then for the same work item to be scheduled again for deletion.

Because the association list is an RCU list, it is not possible to take a lock and remove the list entry directly, so it cannot be looked up again. Instead, a flag (terminating) must be used to determine whether the association is already in the process of being deleted.

AnalysisAI

Denial-of-service (kernel use-after-free/double-free) in the Linux kernel's nvmet-fc NVMe-over-Fibre-Channel target driver allows a local privileged operator to crash the kernel by forcibly shutting down an NVMe target port via configfs. When a port is torn down, nvmet_port_subsys_drop_link() calls both nvmet_port_del_ctrls() and nvmet_disable_port(), each of which can schedule the same association-deletion work item; the first run frees all resources and the second reuses freed memory. This is a fix already merged upstream in the stable trees, with no public exploit identified at time of analysis and a low EPSS score (0.21%, 11th percentile).

Technical ContextAI

The affected component is nvmet-fc, the Linux kernel's NVMe-over-Fabrics target driver for the Fibre Channel transport, managed through the configfs pseudo-filesystem (/sys/kernel/config/nvmet). Associations between host and target are tracked in an RCU-protected linked list. Because entries in an RCU list cannot be safely removed under a lock and re-looked-up, the code guards against duplicate teardown only after the deletion work item is already queued, creating a window where the same work item is scheduled twice. The root-cause class is a concurrency-driven use-after-free / double-free (CWE-416 / CWE-415); the upstream fix introduces a 'terminating' flag so an association already being deleted is not rescheduled. The published CWE is N/A in the input, so the class here is inferred from the description, not vendor-assigned.

Affected ProductsAI

The vulnerability affects the Linux kernel's nvmet-fc target driver across multiple stable branches, as evidenced by six backport commits on git.kernel.org (04d17540ef51, 2f4852db87e2, 601ed47b2363, 85e2ce1920cb, c09ac9a63fc3, f2537be4f842). No specific CPE strings or exact version ranges were provided in the input, so precise affected kernel version numbers are not independently confirmed here; only systems that build and load the nvmet-fc module and configure an NVMe-over-Fibre-Channel target are exposed. The authoritative fix references are the stable-tree commits at https://git.kernel.org/stable/c/2f4852db87e25d4e226b25cb6f652fef9504360e and its sibling backports.

RemediationAI

Upstream fix available (commits); update to a stable kernel release that includes the nvmet-fc 'terminating'-flag change, tracked by the backport commits 04d17540ef51, 2f4852db87e2, 601ed47b2363, 85e2ce1920cb, c09ac9a63fc3 and f2537be4f842 at https://git.kernel.org/stable/c/ - apply the vendor/distribution kernel update that references CVE-2025-40343 rather than an unverified upstream version string, since no single tagged release version was supplied. As a compensating control until patched, restrict who can write to the NVMe target configfs tree (/sys/kernel/config/nvmet) to trusted storage administrators and avoid scripted or repeated forced port shutdowns, since the bug is triggered specifically by the port-drop teardown path; on hosts that do not act as NVMe-oF FC targets, blacklisting/unloading the nvmet-fc module removes the exposure entirely, at the cost of disabling FC target functionality on that host.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

Share

CVE-2025-40343 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy