Skip to main content

Linux Kernel CVE-2025-38405

MEDIUM
Memory Leak (CWE-401)
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Connect as authorized NVMe-oF initiator
  2. Delivery
    Submit NVMe commands with T10-DIF metadata
  3. Exploit
    Trigger bio_init inline bio path on target
  4. Install
    bio_uninit never called on completion
  5. C2
    kmalloc-128 bi_integrity leaks per command
  6. Execute
    Accumulate leaks under sustained I/O
  7. Impact
    Exhaust kernel memory on target

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

The affected system must be configured as an NVMe-over-Fabrics target with the nvmet kernel module loaded and at least one namespace exposed to NVMe initiators. The triggering condition is NVMe commands that include metadata (protection information, T10-DIF), meaning the nvmet namespace must have protection information enabled or the initiator must send commands with metadata fields set. The nvmet subsystem is not loaded by default on general-purpose Linux systems - it requires explicit configuration via configfs (/sys/kernel/config/nvmet/). Exploitation is limited to connected NVMe-oF initiators (PR:L); unauthenticated anonymous access to the target is not typical. Non-metadata NVMe I/O does not trigger the leak. Systems not operating as NVMe-oF targets are entirely unaffected.

Impact

The NVD-assigned CVSS 5.5 Medium (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) rates this as a local-vector issue, but nvmet targets accept commands over the network from NVMe initiators, suggesting AV:N may better represent the real attack surface - this discrepancy should be verified against kernel security team guidance. Impact is strictly availability: no confidentiality or integrity impact is possible from a memory leak. EPSS at 0.15% (5th percentile) reflects very low exploitation probability, and there is no CISA KEV listing and no public POC. Real-world risk is limited to servers explicitly configured as NVMe-oF targets processing metadata/protection-information I/O - a specialized storage infrastructure role. Under sustained production NVMe-oF workloads with metadata enabled, the leak accumulates fast enough to cause OOM conditions, making this a genuine operational concern for NVMe-oF storage appliances but a low priority for general-purpose Linux deployments.

Exploit ScenarioDerived

An NVMe-oF initiator host authorized to connect to the target sends a continuous stream of NVMe read or write commands with T10-DIF metadata attached. On the nvmet target, each command completion path allocates bio->bi_integrity from kmalloc-128 but never frees it due to the missing bio_uninit call. Over hours of production I/O load, leaked slab entries accumulate until the kernel OOM killer triggers or the system becomes unresponsive. No public exploit code exists; this scenario arises from normal workload operation rather than adversarial crafting.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Continuous kernel memory exhaustion in the Linux nvmet (NVMe-over-Fabrics target) subsystem leaks kmalloc-128 slab entries via bio->bi_integrity on every NVMe command with metadata, eventually degrading or denying service on affected target systems. Systems running Linux kernel through 6.16-rc4 as NVMe-oF targets and processing metadata-bearing I/O commands are affected. No public exploit code exists and EPSS is 0.15% (5th percentile), indicating low near-term exploitation probability; this is a correctness regression from a kernel block-layer change rather than a security-targeted attack surface.

RemediationAI

Apply one of the three upstream stable-tree patch commits: https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038, https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508, or https://git.kernel.org/stable/c/431e58d56fcb5ff1f9eb630724a922e0d2a941df. The fix adds bio_uninit for inline bios in nvmet, restoring correct memory lifecycle management. An exact patched stable release version is not independently confirmed at time of analysis - monitor linux-stable mailing list and distribution security advisories (Red Hat, Ubuntu, SUSE) for backport release versions. As a compensating control, administrators can disable protection information (T10-DIF metadata) on nvmet namespaces if end-to-end data integrity checking is not required for the workload; this eliminates the leak code path at the cost of losing hardware-assisted data integrity verification.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel nvmet subsystem implements NVMe-over-Fabrics target functionality (cpe:2.3:o:linux:linux_kernel). For high-throughput inline I/O paths, nvmet uses bio_init to initialize stack-allocated bio structures rather than heap-allocating them. Since upstream commit bf4c89fc8797 ('block: don't call bio_uninit from bio_endio'), the block layer removed the automatic bio_uninit call from bio_endio, shifting cleanup responsibility to each bio_init caller. The nvmet inline bio path never adopted the matching bio_uninit call, leaving bio->bi_integrity (allocated from the kmalloc-128 slab via the T10-DIF/protection information path) unreleased on every I/O completion. CWE-401 (Missing Release of Memory after Effective Lifetime) precisely describes the root cause: a heap allocation whose lifetime exceeds the code path that should free it.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

nvmet receives commands over the network from NVMe initiators, so AV:N better reflects the attack surface; PR:L requires an authorized initiator connection; impact is availability-only.

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

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

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

nvmet: fix memory leak of bio integrity

If nvmet receives commands with metadata there is a continuous memory leak of kmalloc-128 slab or more precisely bio->bi_integrity.

Since commit bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") each user of bio_init has to use bio_uninit as well. Otherwise the bio integrity is not getting free. Nvmet uses bio_init for inline bios.

Uninit the inline bio to complete deallocation of integrity in bio.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
High
Linux kernel underlies most cloud, server, and embedded production environments.
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: Low
Product Status
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
SUSE Linux Enterprise High Availability Extension 16.0 Fixed
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server 16.1 Fixed

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