UBUNTU-CVE-2026-99302: Medium severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: nvmet-rdma: reject short connection requests nvmetrdmaparsecmconnectreq() treats RDMA-CM private data as a struct nvmerdmacmreq but accepts any nonzero privatedatalen. The iWARP path allocates exactly the peer-provided length, so a six-byte MPA request reaches the parser and the hsqsize load reads two bytes past the allocation. Require the complete request structure before reading any of its fields. The decoded KASAN report is: BUG: KASAN: slab-out-of-bounds in nvmetrdmacmhandler (drivers/nvme/target/rdma.c:1427 drivers/nvme/target/rdma.c:1475 drivers/nvme/target/rdma.c:1614 drivers/nvme/target/rdma.c:1814) Read of size 2 at addr ff1100010459d366 by task kworker/u16:1/41 Workqueue: iwcmwq cmworkhandler Call Trace: <TASK> dumpstacklvl (lib/dumpstack.c:94 lib/dumpstack.c:120) printreport (mm/kasan/report.c:378 mm/kasan/report.c:482) kasanreport (mm/kasan/report.c:595) nvmetrdmacmhandler (drivers/nvme/target/rdma.c:1427 drivers/nvme/target/rdma.c:1475 drivers/nvme/target/rdma.c:1614 drivers/nvme/target/rdma.c:1814) cmacmeventhandler (drivers/infiniband/core/cma.c:2181) iwconnreqhandler (drivers/infiniband/core/cma.c:2640) cmworkhandler (drivers/infiniband/core/cm.c:2502 drivers/infiniband/core/cm.c:3858) processonework (kernel/workqueue.c:3396) workerthread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) </TASK> Allocated by task 12: kasankmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415) kmallocnodetrackcallernoprof (mm/slub.c:5414 mm/slub.c:5545) kmemdupnoprof (mm/util.c:138) cmeventhandler (drivers/infiniband/core/iwcm.c:194 drivers/infiniband/core/iwcm.c:1076) siwcmupcall (drivers/infiniband/sw/siw/siwcm.c:408) siwprocmpareq (drivers/infiniband/sw/siw/siwcm.c:750) siwcmworkhandler (drivers/infiniband/sw/siw/siwcm.c:1086) The buggy address is located 0 bytes to the right of allocated 6-byte region [ff1100010459d360, ff1100010459d366)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nvmet_rdma_parse_cm_connect_req(), reject connection requests unless private_data_len is at least the size of struct nvme_rdma_cm_req before reading any request fields.