{"id":"CVE-2026-99858","summary":"nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()","details":"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 \u003e inline_data_size\", evaluated in 64-bit\narithmetic. off is taken straight from the host SGL descriptor\n(le64_to_cpu(sgl-\u003eaddr)) 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-\u003ecmd-\u003einline_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.","modified":"2026-11-30T15:02:31.925577198Z","published":"2026-11-30T13:17:43.050Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99858.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2282aac58d857bc2197d5b50f13d7e577a4eedfe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/23352a849f3de89fa72da56e0bdd894d9110c099"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61f65766d779a9d048280fd589df3f36a7df0878"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6ce60c9226ca583b2b94be63728f3612204f9952"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cfccc5133007373ce8f2a1b856ad7f6d4969858b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1512773a0d539669440bd9f6d050b8e12923b5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2ab52b61e79841c6b1ddf9a9014792c71f32713"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9e33234547ac2a2ff583813862bc39caac782d8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99858.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99858"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349"},{"fixed":"23352a849f3de89fa72da56e0bdd894d9110c099"},{"fixed":"61f65766d779a9d048280fd589df3f36a7df0878"},{"fixed":"2282aac58d857bc2197d5b50f13d7e577a4eedfe"},{"fixed":"e2ab52b61e79841c6b1ddf9a9014792c71f32713"},{"fixed":"e9e33234547ac2a2ff583813862bc39caac782d8"},{"fixed":"cfccc5133007373ce8f2a1b856ad7f6d4969858b"},{"fixed":"6ce60c9226ca583b2b94be63728f3612204f9952"},{"fixed":"d1512773a0d539669440bd9f6d050b8e12923b5f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99858.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99858.json"}}],"schema_version":"1.9.2"}