CVE-2026-139159

nvmet: prevent double-free after metadata SGL allocation failure

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: prevent double-free after metadata SGL allocation failure

If metadata SGL allocation fails, nvmet_req_alloc_sgls() frees
req->sg without clearing it. The RDMA error completion path later
frees the same scatterlist again.

Use nvmet_req_free_sgls() instead so that the scatterlist pointers
and counts are cleared before response cleanup.

Analysis

AI-generated

Technical impact

The vulnerability arises in the Linux kernel's NVMe over RDMA subsystem when an allocation failure for metadata SGLs causes a double-free of a scatterlist. The first deallocation occurs in the allocation routine, but the scatterlist pointers and counts are not cleared. A later error completion path frees the same scatterlist again, which can corrupt the heap. Heap corruption of this nature can lead to arbitrary code execution or, at a minimum, denial of service. This is a classic use‑after‑free condition (CWE‑416).

Affected Systems

The affected product is the Linux kernel. No specific version range is listed in the data, so the issue applies to any kernel revision before the fix is merged. All users of the Linux kernel running the nvmet module are potentially impacted until they upgrade to a fixed release.

Risk and Exploitability

The CVSS score is not provided, but a double‑free in kernel code is generally treated as a high‑severity flaw. The EPSS score is unavailable, and the vulnerability is not listed in CISA's KEV catalog, so the likelihood of widespread exploitation is currently unknown. The attack vector requires a kernel context; remote exploitation would likely require a locally privileged user or a vulnerability that can gain kernel execution to trigger the faulty path. Nevertheless, because heap corruption can allow arbitrary memory writes, the potential for remote code execution exists, warranting urgent attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that contains the nvmet_req_free_sgls patch
  • If an update cannot be applied immediately, disable the NVMe over RDMA (nvmet) service to eliminate the vulnerable code path
  • Monitor system logs for NVMe errors or abnormal memory behavior that may indicate exploitation attempts

Generated by OpenCVE AI on November 30, 2026 at 19:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: prevent double-free after metadata SGL allocation failure If metadata SGL allocation fails, nvmet_req_alloc_sgls() frees req->sg without clearing it. The RDMA error completion path later frees the same scatterlist again. Use nvmet_req_free_sgls() instead so that the scatterlist pointers and counts are cleared before response cleanup.
Title nvmet: prevent double-free after metadata SGL allocation failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

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