Skip to content
Heist/ feed
Unrated

nvmet-tcp: fix page fragment cache leak in error path

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix page fragment cache leak in error path In nvmet_tcp_alloc_queue(), when a connection is closed during the allocation process (e.g., nvmet_tcp_set_queue_sock() returns -ENOTCONN), the error handling jumps to out_destroy_sq and then to out_ida_remove without draining the page fragment cache. Although nvmet_tcp_free_cmd() is called in some error paths to release individual page fragments, the underlying page cache reference held by queue->pf_cache is never released. The first allocation using pf_cache is the call to nvmet_tcp_alloc_cmd() for queue->connect, which happens after ida_alloc() returns successfully. This results in a page leak each time a connection fails during allocation, which could lead to memory exhaustion over time if connections are repeatedly opened and closed. Fix this by calling page_frag_cache_drain() before freeing the queue structure in the out_ida_remove label.

Announced Group revision 1
Original source ↗

CVE-2026-74386

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-74386

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
        "lessThan": "fc11e3f0daaadb6e600a86e54b089d4662d0a464",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
        "lessThan": "a43a9abc1ebf663f0aa56a729106f68dd9c77da6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
        "lessThan": "ba3209704b3cd46961e4e081af5c52a780785648",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
        "lessThan": "5fbe83a374f09561a0f0c1f4aa021501ffd681eb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
        "lessThan": "4dae393956093c807212918fd91a8fc70df15338",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/nvme/target/tcp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.97",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.40",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/nvme/target/tcp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-74386

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#46556 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement