Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139157

nvmet: use the enabled transport when disabling a port

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 7ed6f416744f98e25c43c5a81daa5581637001b7affected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 7d1118f62d0c7bfb46300257a2fae9a61a8e090caffected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < ce42d3a48d5c280449476ea005e04854af3fa718affected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 929e8db88a87e4cd119809acee455816605e3e3eaffected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 0becb7856d419c9fafcae3ad0182b2398f924f29affected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 8c17a634a1485d2450cb998d18d9a54bf1021565affected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 0c9d85e54196fd69810017a2624614fb6619cb8daffected
  • 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 60385038754ed9fb05dab127b35f88c702252505affected

Linux Linux

Default version status: affected

  • 4.8affected
  • 0 to < 4.8unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.119 to ≤ 6.12.*unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References