CVE-2026-139157

Source
https://cve.org/CVERecord?id=CVE-2026-139157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139157
Downstream
Published
2026-11-30T13:32:06Z
Modified
2026-11-30T15:02:27Z
Summary
nvmet: use the enabled transport when disabling a port
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139157.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8f000cac6e7a6edca7ab93bafc7ed28b27c1545b
Fixed
7ed6f416744f98e25c43c5a81daa5581637001b7
Fixed
7d1118f62d0c7bfb46300257a2fae9a61a8e090c
Fixed
ce42d3a48d5c280449476ea005e04854af3fa718
Fixed
929e8db88a87e4cd119809acee455816605e3e3e
Fixed
0becb7856d419c9fafcae3ad0182b2398f924f29
Fixed
8c17a634a1485d2450cb998d18d9a54bf1021565
Fixed
0c9d85e54196fd69810017a2624614fb6619cb8d
Fixed
60385038754ed9fb05dab127b35f88c702252505

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139157.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.8.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139157.json"