{"api_version":"1","generated_at":"2026-12-01T06:50:19+00:00","cve":"CVE-2026-99858","urls":{"html":"https://cve.report/CVE-2026-99858","api":"https://cve.report/api/cve/CVE-2026-99858.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99858","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99858"},"summary":{"title":"nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()\n\nnvmet_rdma_map_sgl_inline() bounds the host-supplied in-capsule SGL\noffset with \"off + len > inline_data_size\", evaluated in 64-bit\narithmetic. off is taken straight from the host SGL descriptor\n(le64_to_cpu(sgl->addr)) and len is promoted to 64-bit, so the sum\nwraps: an off within len of 2^64 makes it small and the check passes.\noff is then used as page_idx = off / PAGE_SIZE to index the fixed-size\nrsp->cmd->inline_sg[] array (NVMET_RDMA_MAX_INLINE_SGE entries), so a\ncrafted offset yields an out-of-bounds scatterlist index that is written\nthrough in nvmet_rdma_use_inline_sg().\n\nThe mapping runs while handling a received capsule, before the command\nexecutes, so a remote RDMA peer can reach it (the Connect capsule is a\nwrite and takes this path on a queue that has no controller yet). The\nhost controls only the low bits of the resulting displacement, so the\nexpected impact is an out-of-bounds write that faults the target\n(remote denial of service).\n\nThis wrap was reported, with a KASAN reproduction, on linux-nvme in May,\nand the check below was suggested in that thread. The fix that was\napplied, 48c0162f647b, reworked how the offset is mapped but kept the\noriginal check, and its page index turns a wrapped offset into an\nout-of-bounds index into inline_sg[].\n\nReject the offset before it can wrap.\n\nFound independently by static analysis with AI assistance, not\nreproduced at runtime.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:19","updated_at":"2026-12-01 06:17:53"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/e2ab52b61e79841c6b1ddf9a9014792c71f32713","name":"https://git.kernel.org/stable/c/e2ab52b61e79841c6b1ddf9a9014792c71f32713","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2282aac58d857bc2197d5b50f13d7e577a4eedfe","name":"https://git.kernel.org/stable/c/2282aac58d857bc2197d5b50f13d7e577a4eedfe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6ce60c9226ca583b2b94be63728f3612204f9952","name":"https://git.kernel.org/stable/c/6ce60c9226ca583b2b94be63728f3612204f9952","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d1512773a0d539669440bd9f6d050b8e12923b5f","name":"https://git.kernel.org/stable/c/d1512773a0d539669440bd9f6d050b8e12923b5f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/23352a849f3de89fa72da56e0bdd894d9110c099","name":"https://git.kernel.org/stable/c/23352a849f3de89fa72da56e0bdd894d9110c099","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/61f65766d779a9d048280fd589df3f36a7df0878","name":"https://git.kernel.org/stable/c/61f65766d779a9d048280fd589df3f36a7df0878","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cfccc5133007373ce8f2a1b856ad7f6d4969858b","name":"https://git.kernel.org/stable/c/cfccc5133007373ce8f2a1b856ad7f6d4969858b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e9e33234547ac2a2ff583813862bc39caac782d8","name":"https://git.kernel.org/stable/c/e9e33234547ac2a2ff583813862bc39caac782d8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99858","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99858","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 23352a849f3de89fa72da56e0bdd894d9110c099 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 61f65766d779a9d048280fd589df3f36a7df0878 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 2282aac58d857bc2197d5b50f13d7e577a4eedfe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 e2ab52b61e79841c6b1ddf9a9014792c71f32713 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 e9e33234547ac2a2ff583813862bc39caac782d8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 cfccc5133007373ce8f2a1b856ad7f6d4969858b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 6ce60c9226ca583b2b94be63728f3612204f9952 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 d1512773a0d539669440bd9f6d050b8e12923b5f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvme/target/rdma.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"23352a849f3de89fa72da56e0bdd894d9110c099","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"61f65766d779a9d048280fd589df3f36a7df0878","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"2282aac58d857bc2197d5b50f13d7e577a4eedfe","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"e2ab52b61e79841c6b1ddf9a9014792c71f32713","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"e9e33234547ac2a2ff583813862bc39caac782d8","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"cfccc5133007373ce8f2a1b856ad7f6d4969858b","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"6ce60c9226ca583b2b94be63728f3612204f9952","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"},{"lessThan":"d1512773a0d539669440bd9f6d050b8e12923b5f","status":"affected","version":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvme/target/rdma.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.19"},{"lessThan":"4.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()\n\nnvmet_rdma_map_sgl_inline() bounds the host-supplied in-capsule SGL\noffset with \"off + len > inline_data_size\", evaluated in 64-bit\narithmetic. off is taken straight from the host SGL descriptor\n(le64_to_cpu(sgl->addr)) and len is promoted to 64-bit, so the sum\nwraps: an off within len of 2^64 makes it small and the check passes.\noff is then used as page_idx = off / PAGE_SIZE to index the fixed-size\nrsp->cmd->inline_sg[] array (NVMET_RDMA_MAX_INLINE_SGE entries), so a\ncrafted offset yields an out-of-bounds scatterlist index that is written\nthrough in nvmet_rdma_use_inline_sg().\n\nThe mapping runs while handling a received capsule, before the command\nexecutes, so a remote RDMA peer can reach it (the Connect capsule is a\nwrite and takes this path on a queue that has no controller yet). The\nhost controls only the low bits of the resulting displacement, so the\nexpected impact is an out-of-bounds write that faults the target\n(remote denial of service).\n\nThis wrap was reported, with a KASAN reproduction, on linux-nvme in May,\nand the check below was suggested in that thread. The fix that was\napplied, 48c0162f647b, reworked how the offset is mapped but kept the\noriginal check, and its page index turns a wrapped offset into an\nout-of-bounds index into inline_sg[].\n\nReject the offset before it can wrap.\n\nFound independently by static analysis with AI assistance, not\nreproduced at runtime."}],"metrics":[{"cvssV3_1":{"baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:N - nvmet_rdma_map_sgl_inline() takes off from dptr.sgl.addr of a capsule the remote host sends as an RDMA SEND (nvmet_rdma_recv_done -> nvmet_rdma_handle_command -> nvmet_rdma_map_sgl). The malformed value arrives in the NVMe Connect capsule over RoCEv2 (UDP/IP) or iWARP (TCP), which are routable transports, matching the published nvmet-rdma records.\nAC:L - The host chooses off = 2^64-k with k <= len, so \"off + len\" wraps below inline_data_size. This is deterministic, with no race or timing, and works at the default inline_data_size (PAGE_SIZE). The host picks qid in the nvme_rdma_cm_req private data, so it also chooses an I/O-queue cmd with inline pages.\nPR:N - nvmet_parse_connect_cmd accepts Connect (opcode 0x7f, a write) on an sq with no ctrl, and map_sgl runs before req->execute. That is before nvmet_host_allowed() or DH-HMAC-CHAP. nvmet_rdma_queue_connect accepts any RDMA CM request with recfmt 1.0.\nUI:N - No victim action is needed beyond a configured nvmet-rdma port; the attacker opens the RDMA CM connection and sends the crafted Connect capsule itself.\nS:U - The heap overwrite and the crash both stay inside the target host kernel; no guest/host or IOMMU security boundary is crossed.\nC:H - In releases before the 48c0162f647b backport (4.19 up to 6.1.177, 6.12.96, etc.), sg[0].offset becomes 2^32-k, so the backend reads about 4 GiB past the inline page. The overflow into the adjacent nvmet_rdma_cmd also corrupts the pointers and DMA addresses used for receive buffers.\nI:H - Pre-48c0162f647b code loops num_pages(len) times with no cap, writing past inline_sg[4] (offset 120 of the 272-byte nvmet_rdma_cmd). It zeroes cmd->queue and overwrites the next kvzalloc'd cmd's sge[1].addr receive DMA address and its cqe.done function pointer. On 7.2+, &inline_sg[page_idx] is about 2^57 bytes away and only faults.\nA:H - A pre-auth capsule deterministically oopses the target. On 7.2+, sg_mark_end takes a GPF on the non-canonical inline_sg[page_idx]. Older code dereferences the zeroed cmd->queue as NULL in nvmet_rdma_post_recv. Both crash in the CQ completion worker, and the attack can be repeated on every reconnect."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:43:50.051Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/23352a849f3de89fa72da56e0bdd894d9110c099"},{"url":"https://git.kernel.org/stable/c/61f65766d779a9d048280fd589df3f36a7df0878"},{"url":"https://git.kernel.org/stable/c/2282aac58d857bc2197d5b50f13d7e577a4eedfe"},{"url":"https://git.kernel.org/stable/c/e2ab52b61e79841c6b1ddf9a9014792c71f32713"},{"url":"https://git.kernel.org/stable/c/e9e33234547ac2a2ff583813862bc39caac782d8"},{"url":"https://git.kernel.org/stable/c/cfccc5133007373ce8f2a1b856ad7f6d4969858b"},{"url":"https://git.kernel.org/stable/c/6ce60c9226ca583b2b94be63728f3612204f9952"},{"url":"https://git.kernel.org/stable/c/d1512773a0d539669440bd9f6d050b8e12923b5f"}],"title":"nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99858","datePublished":"2026-11-30T13:17:43.050Z","dateReserved":"2026-09-25T10:25:14.439Z","dateUpdated":"2026-12-01T05:43:50.051Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:19","lastModifiedDate":"2026-12-01 06:17:53","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99858","Ordinal":"1","Title":"nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline","CVE":"CVE-2026-99858","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99858","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()\n\nnvmet_rdma_map_sgl_inline() bounds the host-supplied in-capsule SGL\noffset with \"off + len > inline_data_size\", evaluated in 64-bit\narithmetic. off is taken straight from the host SGL descriptor\n(le64_to_cpu(sgl->addr)) and len is promoted to 64-bit, so the sum\nwraps: an off within len of 2^64 makes it small and the check passes.\noff is then used as page_idx = off / PAGE_SIZE to index the fixed-size\nrsp->cmd->inline_sg[] array (NVMET_RDMA_MAX_INLINE_SGE entries), so a\ncrafted offset yields an out-of-bounds scatterlist index that is written\nthrough in nvmet_rdma_use_inline_sg().\n\nThe mapping runs while handling a received capsule, before the command\nexecutes, so a remote RDMA peer can reach it (the Connect capsule is a\nwrite and takes this path on a queue that has no controller yet). The\nhost controls only the low bits of the resulting displacement, so the\nexpected impact is an out-of-bounds write that faults the target\n(remote denial of service).\n\nThis wrap was reported, with a KASAN reproduction, on linux-nvme in May,\nand the check below was suggested in that thread. The fix that was\napplied, 48c0162f647b, reworked how the offset is mapped but kept the\noriginal check, and its page index turns a wrapped offset into an\nout-of-bounds index into inline_sg[].\n\nReject the offset before it can wrap.\n\nFound independently by static analysis with AI assistance, not\nreproduced at runtime.","Type":"Description","Title":"nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline"}]}}}