CVE-2026-138813

nvmet: free the bvec on file namespace range errors

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet: free the bvec on file namespace range errors

nvmet_file_execute_rw() allocates the bvec before
nvmet_file_execute_io() checks whether the request fits in the backing
file. If the request extends beyond the file, nvmet_file_execute_io()
calls nvmet_req_complete() to return an error. This skips
nvmet_file_io_done(), so the allocated memory is never freed. Repeated
requests can exhaust memory.

Use nvmet_file_io_done() to free the bvec before returning the range
error to the client.

Analysis

AI-generated

Technical impact

The Linux kernel vulnerability causes a memory leak when NVMe file namespace I/O requests exceed the size of the backing file. The function nvmet_file_execute_rw() allocates a buffer before validating the request length; on a length overflow nvmet_file_execute_io() returns an error without freeing the buffer. Repeatedly sending oversized requests can exhaust available memory, potentially crashing the system or degrading performance. This flaw is a classic heap memory leak leading to resource exhaustion, not a code execution bug.

Affected Systems

All Linux kernel versions that include the nvmet subsystem before the patch identified by commit 19c237734e1f83f4fd7fbf29eb817f8f0c831d99. The vulnerability is present in the Linux kernel vendor product and affects systems that expose NVMe over Fabrics file namespace functionality. No specific vendor version numbers are provided, so any kernel that has not been upgraded past this commit is potentially impacted.

Risk and Exploitability

Information about the EPS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is remote: an attacker who can send NVMe I/O requests over a network could trigger the overflow repeatedly, exhausting memory. The CVSS score was not supplied, but the risk lies in the ability to cause denial of service when the attacker can direct large requests to the vulnerable server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the nvmet_file_execute_rw patch (commit 19c237734e1f83f4fd7fbf29eb817f8f0c831d99).
  • If an immediate kernel upgrade is not possible, disable NVMe File Namespace support or restrict NVMe traffic from untrusted sources using firewall or network segmentation.
  • If disabling is impractical, apply request size limits or rate limits through vendor-specific configuration or by monitoring and terminating connections that consistently issue oversized requests.

Generated by OpenCVE AI on November 30, 2026 at 16:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-400
CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: free the bvec on file namespace range errors nvmet_file_execute_rw() allocates the bvec before nvmet_file_execute_io() checks whether the request fits in the backing file. If the request extends beyond the file, nvmet_file_execute_io() calls nvmet_req_complete() to return an error. This skips nvmet_file_io_done(), so the allocated memory is never freed. Repeated requests can exhaust memory. Use nvmet_file_io_done() to free the bvec before returning the range error to the client.
Title nvmet: free the bvec on file namespace range errors
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM