{"id":"CVE-2022-50717","state":"PUBLISHED","title":"nvmet-tcp: add bounds check on Transfer Tag","description":"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.","publishedAt":"2025-12-24T12:22:41.269Z","updatedAt":"2026-08-05T08:59:27.894Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"0d150ccd55dbfad36f55855b40b381884c98456e","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"d5bb45f47b37d10f010355686b28c9ebacb361d4","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"ec8adf767e1cfa7031f853b8c71ba1963f07df15","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"fcf82e4553db911d10234ff2390cfd0e2aa854e4","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"752593d04637ebdc87fd29cba81897f21ae053f0","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.220","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.150","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/tcp.c"]}],"references":["https://git.kernel.org/stable/c/0d150ccd55dbfad36f55855b40b381884c98456e","https://git.kernel.org/stable/c/d5bb45f47b37d10f010355686b28c9ebacb361d4","https://git.kernel.org/stable/c/ec8adf767e1cfa7031f853b8c71ba1963f07df15","https://git.kernel.org/stable/c/fcf82e4553db911d10234ff2390cfd0e2aa854e4","https://git.kernel.org/stable/c/752593d04637ebdc87fd29cba81897f21ae053f0","https://git.kernel.org/stable/c/b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50717.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50717","state":"PUBLISHED","datePublished":"2025-12-24T12:22:41.269Z","dateUpdated":"2026-08-05T08:59:27.894Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T12:20:40.329Z"},"containers":{"cna":{"title":"nvmet-tcp: add bounds check on Transfer Tag","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"0d150ccd55dbfad36f55855b40b381884c98456e","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"d5bb45f47b37d10f010355686b28c9ebacb361d4","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"ec8adf767e1cfa7031f853b8c71ba1963f07df15","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"fcf82e4553db911d10234ff2390cfd0e2aa854e4","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"752593d04637ebdc87fd29cba81897f21ae053f0","versionType":"git"},{"version":"872d26a391da92ed8f0c0f5cb5fef428067b7f30","status":"affected","lessThan":"b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.220","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.150","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/tcp.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:59:27.894Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}