CVE-2026-139157
nvmet: use the enabled transport when disabling a port
Check your servers for CVE-2026-139157
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-139157 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: use the enabled transport when disabling a port
nvmet_disable_port() looks up the transport from the current disc_addr.trtype, while nvmet_enable_port() records the transport in port->tr_ops. If trtype is changed while a port is being enabled, the port can be removed through a different transport, passing the private data of the original transport to the wrong ->remove_port().
The same mismatch is reachable with loop and RDMA: loop add_port() leaves port->priv NULL, and RDMA remove_port() dereferences it.
Use port->tr_ops for removal and serialize trtype changes with nvmet_config_sem in nvmet_addr_trtype_store(), so the transport that added the port is also the one that removes it.
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.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 7ed6f416744f98e25c43c5a81daa5581637001b7 affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 7d1118f62d0c7bfb46300257a2fae9a61a8e090c affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before ce42d3a48d5c280449476ea005e04854af3fa718 affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 929e8db88a87e4cd119809acee455816605e3e3e affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 0becb7856d419c9fafcae3ad0182b2398f924f29 affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 8c17a634a1485d2450cb998d18d9a54bf1021565 affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 0c9d85e54196fd69810017a2624614fb6619cb8d affected from 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b, before 60385038754ed9fb05dab127b35f88c702252505
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 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-139157 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139157
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-139157
trivy image --scanners vuln IMAGE | grep CVE-2026-139157
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/7ed6f416744f98e25c43c5a81daa5581637001b7 git.kernel.org
- https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c git.kernel.org
- https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718 git.kernel.org
- https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e git.kernel.org
- https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29 git.kernel.org
- https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565 git.kernel.org
- https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d git.kernel.org
- https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505 git.kernel.org
Source: the record CVE-2026-139157 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