{"id":"CVE-2026-92525","state":"PUBLISHED","title":"RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]\n\nFor a user QP, qp->sq.queue is a ring the application writes directly,\nso rxe_post_send() takes the is_user branch and only schedules send_task\nwithout validating the WQE. rxe_requester() consumes it in place via\nreq_next_wqe() and calls copy_data(), which indexes\n&wqe->dma.sge[cur_sge] with the attacker-controlled num_sge/cur_sge.\nOnly the kernel path bounds num_sge (validate_send_wr()); the user WQE\nis never checked, so a local unprivileged user can post a WQE with an\nout-of-range cur_sge or oversized num_sge and force an out-of-bounds\nread of the per-WQE sge array in copy_data() (vmalloc OOB read, local\nDoS).\n\nBound num_sge to qp->sq.max_sge in rxe_requester() before use, the way\nget_srq_wqe() already guards SRQ entries, and bound cur_sge only when\nthe WQE carries payload (dma.resid): copy_data() returns early on a\nzero-length copy before touching dma->sge[], so a zero-payload WQE --\nthe only kind a max_sge == 0 QP can post -- stays valid.\n\nReproduced under KASAN; the vmalloc-out-of-bounds in copy_data() is gone.","publishedAt":"2026-09-17T16:10:30.789Z","updatedAt":"2026-10-19T09:04:31.432Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"69d3ccf6543f24c452a020c8028ca6f46cb1e8db","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"750bba6ce9bb0b11d6a166031c9728ae3f21765e","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"c067aa7b231e91a18a1b3666201ab14dfb00347a","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"13cb7160e5b791f5e3ecf9311cf32849fe7e9b62","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"5ec111ddc1f727c1e4580aea459842ae5a8359a5","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"126c757e4cd46f866ddc283143b58eb4d9bf52cd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_req.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_req.c"]}],"references":["https://git.kernel.org/stable/c/69d3ccf6543f24c452a020c8028ca6f46cb1e8db","https://git.kernel.org/stable/c/750bba6ce9bb0b11d6a166031c9728ae3f21765e","https://git.kernel.org/stable/c/c067aa7b231e91a18a1b3666201ab14dfb00347a","https://git.kernel.org/stable/c/13cb7160e5b791f5e3ecf9311cf32849fe7e9b62","https://git.kernel.org/stable/c/5ec111ddc1f727c1e4580aea459842ae5a8359a5","https://git.kernel.org/stable/c/126c757e4cd46f866ddc283143b58eb4d9bf52cd"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/92xxx/CVE-2026-92525.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-92525","state":"PUBLISHED","datePublished":"2026-09-17T16:10:30.789Z","dateUpdated":"2026-10-19T09:04:31.432Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-16T12:21:13.875Z"},"containers":{"cna":{"title":"RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]\n\nFor a user QP, qp->sq.queue is a ring the application writes directly,\nso rxe_post_send() takes the is_user branch and only schedules send_task\nwithout validating the WQE. rxe_requester() consumes it in place via\nreq_next_wqe() and calls copy_data(), which indexes\n&wqe->dma.sge[cur_sge] with the attacker-controlled num_sge/cur_sge.\nOnly the kernel path bounds num_sge (validate_send_wr()); the user WQE\nis never checked, so a local unprivileged user can post a WQE with an\nout-of-range cur_sge or oversized num_sge and force an out-of-bounds\nread of the per-WQE sge array in copy_data() (vmalloc OOB read, local\nDoS).\n\nBound num_sge to qp->sq.max_sge in rxe_requester() before use, the way\nget_srq_wqe() already guards SRQ entries, and bound cur_sge only when\nthe WQE carries payload (dma.resid): copy_data() returns early on a\nzero-length copy before touching dma->sge[], so a zero-payload WQE --\nthe only kind a max_sge == 0 QP can post -- stays valid.\n\nReproduced under KASAN; the vmalloc-out-of-bounds in copy_data() is gone."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"69d3ccf6543f24c452a020c8028ca6f46cb1e8db","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"750bba6ce9bb0b11d6a166031c9728ae3f21765e","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"c067aa7b231e91a18a1b3666201ab14dfb00347a","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"13cb7160e5b791f5e3ecf9311cf32849fe7e9b62","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"5ec111ddc1f727c1e4580aea459842ae5a8359a5","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","status":"affected","lessThan":"126c757e4cd46f866ddc283143b58eb4d9bf52cd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_req.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_req.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/69d3ccf6543f24c452a020c8028ca6f46cb1e8db"},{"url":"https://git.kernel.org/stable/c/750bba6ce9bb0b11d6a166031c9728ae3f21765e"},{"url":"https://git.kernel.org/stable/c/c067aa7b231e91a18a1b3666201ab14dfb00347a"},{"url":"https://git.kernel.org/stable/c/13cb7160e5b791f5e3ecf9311cf32849fe7e9b62"},{"url":"https://git.kernel.org/stable/c/5ec111ddc1f727c1e4580aea459842ae5a8359a5"},{"url":"https://git.kernel.org/stable/c/126c757e4cd46f866ddc283143b58eb4d9bf52cd"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The attacker writes dma.num_sge/dma.cur_sge into the mmap'd send queue (rxe_init_sq→vmalloc_user, rxe_mmap); ib_uverbs_post_send only doorbells rxe_post_send, which for qp->is_user skips validate_send_wr() and schedules rxe_requester(). Inbound RoCE/UDP packets do not carry these WQE index fields.\nAC:L - The attacker fully controls the mmap'd SQ slot (cur_sge, num_sge, resid, opcode) and the producer_index, then issues IB_USER_VERBS_CMD_POST_SEND; rxe_requester→finish_packet→copy_data indexes sge[] with no race and no victim-side state.\nPR:L - uverbs_devnode() publishes /dev/infiniband/uverbsN as 0666; ib_uverbs_open, ib_uverbs_create_qp, ib_uverbs_modify_qp and ib_uverbs_post_send require no capability for IB_QPT_UD/RC, so an unprivileged local user can create a user QP, mmap the SQ and post the malformed WQE.\nUI:N - The attacker creates their own user QP, writes the malformed send WQE into their mmap'd SQ and doorbells post_send; no other user must mount, open a file, or otherwise act.\nS:U - The vmalloc OOB in copy_data() runs in the host kernel rxe requester on behalf of the local process and does not cross a VM, guest-to-host, or IOMMU/DMA authority boundary.\nC:H - copy_data() does &dma->sge[dma->cur_sge] with attacker-controlled u32 cur_sge/num_sge into the vmalloc SQ and then reads sge->length/lkey/addr; an oversized num_sge also lets the sge++ loop walk unbounded kernel vmalloc (KASAN vmalloc-out-of-bounds).\nI:N - finish_packet() calls copy_data(..., RXE_FROM_MR_OBJ), which only reads MR contents into the SKB; the OOB is a read of sge descriptors, dma updates stay in the attacker's mmap'd WQE, and lookup_mr/rxe_mr_copy remain confined to MRs in the caller's PD.\nA:H - Indexing &wqe->dma.sge[cur_sge] past the vmalloc_user send-queue object is a KASAN-reproduced vmalloc-out-of-bounds in copy_data() that oopses/panics the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:04:31.432Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}