{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50717",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-24T12:20:40.329Z",
        "datePublished": "2025-12-24T12:22:41.269Z",
        "dateUpdated": "2026-08-05T08:59:27.894Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:59:27.894Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-tcp: add bounds check on Transfer Tag\n\nttag is used as an index to get cmd in nvmet_tcp_handle_h2c_data_pdu(),\nadd a bounds check to avoid out-of-bounds access."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - nvmet-tcp is an in-kernel NVMe-over-TCP target that listens on a TCP port and processes remote NVMe-TCP PDUs; a remote peer can send a crafted H2C Data PDU to reach nvmet_tcp_handle_h2c_data_pdu().\nAC:L - The attacker fully controls data->ttag in the H2C Data PDU and can reliably index past queue->cmds after Connect installs the command array; no race or conditions outside attacker control are required.\nPR:N - After ICReq, Connect to the discovery subsystem (always allows any hostnqn) or any allow_any_host target installs the queue and allocates cmds with no authentication; H2C Data handling then indexes by ttag without further auth checks.\nUI:N - Exploitation requires only sending network PDUs to the listening NVMe-TCP port; no victim user action is needed.\nS:U - Impact is confined to the kernel hosting the nvmet-tcp target; this is not a VM/IOMMU/sandbox boundary escape.\nC:H - Out-of-bounds access to struct nvmet_tcp_cmd reads adjacent slab memory (pointers, SGLs, offsets) and can be leveraged as an information-disclosure primitive, consistent with treating memory-corruption OOB as C:H.\nI:H - The OOB cmd is used to build a receive iovec (nvmet_tcp_build_pdu_iovec) and/or passed to nvmet_req_complete, enabling attacker-controlled writes into kernel memory determined by corrupted structure fields.\nA:H - Dereferencing or completing an out-of-bounds cmd structure reliably causes kernel oops/GPF/panic, so a remote attacker can crash the target."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/target/tcp.c"
                    ],
                    "versions": [
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "0d150ccd55dbfad36f55855b40b381884c98456e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "d5bb45f47b37d10f010355686b28c9ebacb361d4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "ec8adf767e1cfa7031f853b8c71ba1963f07df15",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "fcf82e4553db911d10234ff2390cfd0e2aa854e4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "752593d04637ebdc87fd29cba81897f21ae053f0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
                            "lessThan": "b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b",
                            "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/tcp.c"
                    ],
                    "versions": [
                        {
                            "version": "5.0",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.0",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.220",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.150",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.75",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.17",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.3",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "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": "5.0",
                                    "versionEndExcluding": "5.4.220"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.0",
                                    "versionEndExcluding": "5.10.150"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.0",
                                    "versionEndExcluding": "5.15.75"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.0",
                                    "versionEndExcluding": "5.19.17"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.0",
                                    "versionEndExcluding": "6.0.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.0",
                                    "versionEndExcluding": "6.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/0d150ccd55dbfad36f55855b40b381884c98456e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d5bb45f47b37d10f010355686b28c9ebacb361d4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ec8adf767e1cfa7031f853b8c71ba1963f07df15"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fcf82e4553db911d10234ff2390cfd0e2aa854e4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/752593d04637ebdc87fd29cba81897f21ae053f0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b"
                }
            ],
            "title": "nvmet-tcp: add bounds check on Transfer Tag",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}