{"id":"CVE-2026-99302","summary":"nvmet-rdma: reject short connection requests","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: reject short connection requests\n\nnvmet_rdma_parse_cm_connect_req() treats RDMA-CM private data as a\nstruct nvme_rdma_cm_req but accepts any nonzero private_data_len.  The\niWARP path allocates exactly the peer-provided length, so a six-byte MPA\nrequest reaches the parser and the hsqsize load reads two bytes past the\nallocation.\n\nRequire the complete request structure before reading any of its fields.\nThe decoded KASAN report is:\n\n  BUG: KASAN: slab-out-of-bounds in nvmet_rdma_cm_handler\n    (drivers/nvme/target/rdma.c:1427 drivers/nvme/target/rdma.c:1475\n     drivers/nvme/target/rdma.c:1614 drivers/nvme/target/rdma.c:1814)\n  Read of size 2 at addr ff1100010459d366 by task kworker/u16:1/41\n  Workqueue: iw_cm_wq cm_work_handler\n  Call Trace:\n   \u003cTASK\u003e\n   dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120)\n   print_report (mm/kasan/report.c:378 mm/kasan/report.c:482)\n   kasan_report (mm/kasan/report.c:595)\n   nvmet_rdma_cm_handler\n    (drivers/nvme/target/rdma.c:1427 drivers/nvme/target/rdma.c:1475\n     drivers/nvme/target/rdma.c:1614 drivers/nvme/target/rdma.c:1814)\n   cma_cm_event_handler (drivers/infiniband/core/cma.c:2181)\n   iw_conn_req_handler (drivers/infiniband/core/cma.c:2640)\n   cm_work_handler\n    (drivers/infiniband/core/cm.c:2502\n     drivers/infiniband/core/cm.c:3858)\n   process_one_work (kernel/workqueue.c:3396)\n   worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n   kthread (kernel/kthread.c:436)\n   ret_from_fork (arch/x86/kernel/process.c:158)\n   ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n   \u003c/TASK\u003e\n\n  Allocated by task 12:\n   __kasan_kmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415)\n   __kmalloc_node_track_caller_noprof\n    (mm/slub.c:5414 mm/slub.c:5545)\n   kmemdup_noprof (mm/util.c:138)\n   cm_event_handler\n    (drivers/infiniband/core/iwcm.c:194\n     drivers/infiniband/core/iwcm.c:1076)\n   siw_cm_upcall (drivers/infiniband/sw/siw/siw_cm.c:408)\n   siw_proc_mpareq (drivers/infiniband/sw/siw/siw_cm.c:750)\n   siw_cm_work_handler (drivers/infiniband/sw/siw/siw_cm.c:1086)\n\n  The buggy address is located 0 bytes to the right of\n  allocated 6-byte region [ff1100010459d360, ff1100010459d366)","modified":"2026-11-16T12:01:24.061446017Z","published":"2026-11-16T09:59:27.815Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99302.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/22d0eb8d7aa4e45d22491d7cc1327010f19c86b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36c3af0e94b6c385c4934c028cbca27e138ae1ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/635e760169a87abf03874cd4636cd91b580cb427"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c17d443d1e984a0c0840692c6435cdc455936160"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99302.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99302"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b"},{"fixed":"22d0eb8d7aa4e45d22491d7cc1327010f19c86b9"},{"fixed":"36c3af0e94b6c385c4934c028cbca27e138ae1ee"},{"fixed":"c17d443d1e984a0c0840692c6435cdc455936160"},{"fixed":"635e760169a87abf03874cd4636cd91b580cb427"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99302.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99302.json"}}],"schema_version":"1.9.2"}