CVE-2026-74386
nvmet-tcp: fix page fragment cache leak in error path
Check your servers for CVE-2026-74386
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-74386 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before aadb8eb9006e192c51b499860f40765de7d55680 affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before fc11e3f0daaadb6e600a86e54b089d4662d0a464 affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before a43a9abc1ebf663f0aa56a729106f68dd9c77da6 affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before ba3209704b3cd46961e4e081af5c52a780785648 affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before 5fbe83a374f09561a0f0c1f4aa021501ffd681eb affected from 872d26a391da92ed8f0c0f5cb5fef428067b7f30, before 4dae393956093c807212918fd91a8fc70df15338
Other versions: unaffected
|
| Linux |
affected 5.0 unaffected before 5.0 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.97 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-74386 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-74386
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-74386
trivy image --scanners vuln IMAGE | grep CVE-2026-74386
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/aadb8eb9006e192c51b499860f40765de7d55680 git.kernel.org
- https://git.kernel.org/stable/c/fc11e3f0daaadb6e600a86e54b089d4662d0a464 git.kernel.org
- https://git.kernel.org/stable/c/a43a9abc1ebf663f0aa56a729106f68dd9c77da6 git.kernel.org
- https://git.kernel.org/stable/c/ba3209704b3cd46961e4e081af5c52a780785648 git.kernel.org
- https://git.kernel.org/stable/c/5fbe83a374f09561a0f0c1f4aa021501ffd681eb git.kernel.org
- https://git.kernel.org/stable/c/4dae393956093c807212918fd91a8fc70df15338 git.kernel.org
Source: the record CVE-2026-74386 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse