{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139157",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.917Z",
        "datePublished": "2026-11-30T13:32:06.626Z",
        "dateUpdated": "2026-11-30T13:32:06.626Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:32:06.626Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: use the enabled transport when disabling a port\n\nnvmet_disable_port() looks up the transport from the current\ndisc_addr.trtype, while nvmet_enable_port() records the transport in\nport->tr_ops.  If trtype is changed while a port is being enabled, the\nport can be removed through a different transport, passing the private\ndata of the original transport to the wrong ->remove_port().\n\nThe same mismatch is reachable with loop and RDMA: loop add_port()\nleaves port->priv NULL, and RDMA remove_port() dereferences it.\n\nUse port->tr_ops for removal and serialize trtype changes with\nnvmet_config_sem in nvmet_addr_trtype_store(), so the transport that\nadded the port is also the one that removes it."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/target/configfs.c",
                        "drivers/nvme/target/core.c"
                    ],
                    "versions": [
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "7ed6f416744f98e25c43c5a81daa5581637001b7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "7d1118f62d0c7bfb46300257a2fae9a61a8e090c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "ce42d3a48d5c280449476ea005e04854af3fa718",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "929e8db88a87e4cd119809acee455816605e3e3e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "0becb7856d419c9fafcae3ad0182b2398f924f29",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "8c17a634a1485d2450cb998d18d9a54bf1021565",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "0c9d85e54196fd69810017a2624614fb6619cb8d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b",
                            "lessThan": "60385038754ed9fb05dab127b35f88c702252505",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/target/configfs.c",
                        "drivers/nvme/target/core.c"
                    ],
                    "versions": [
                        {
                            "version": "4.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718"
                },
                {
                    "url": "https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505"
                }
            ],
            "title": "nvmet: use the enabled transport when disabling a port",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}