{"api_version":"1","generated_at":"2026-12-01T06:50:20+00:00","cve":"CVE-2026-139356","urls":{"html":"https://cve.report/CVE-2026-139356","api":"https://cve.report/api/cve/CVE-2026-139356.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139356","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139356"},"summary":{"title":"RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]\n\nFor a user QP, rxe_post_send() takes the qp->is_user branch and\nnever runs init_send_wqe(), so\ndma.length/resid/num_sge/cur_sge/sge_offset all come straight from\nthe mmap'd SQ ring. In the inline send path finish_packet() uses\nsge_offset directly as an index:\n\n\tu8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset];\n\tmemcpy(payload_addr(pkt), tmp, payload);\n\ninline_data is a flex array whose capacity is qp->sq.max_inline, but\nsge_offset is a u32 from user space, so the source pointer is\ndisplaced arbitrarily past the WQE and the memcpy reads out of\nbounds.\ncommit 126c757e4cd4 (\"RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]\")\nadded num_sge/cur_sge checks on the send path but not sge_offset, the\nthird attacker-controlled index in the same struct.\n\nRead sge_offset once with READ_ONCE() and bound it (and the payload\nthat follows it) by qp->sq.max_inline before indexing, so the value\nthat is validated is the value that is used.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:01","updated_at":"2026-12-01 06:17:43"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/a99c5a54227ba60c4c8e26a570d6d724c39f6ae1","name":"https://git.kernel.org/stable/c/a99c5a54227ba60c4c8e26a570d6d724c39f6ae1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/47a9c0338f2e0d4178d77b0d2f529fe1fde84642","name":"https://git.kernel.org/stable/c/47a9c0338f2e0d4178d77b0d2f529fe1fde84642","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1d77fd886b4757388246bb8ab2fb805b72ddaed0","name":"https://git.kernel.org/stable/c/1d77fd886b4757388246bb8ab2fb805b72ddaed0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7","name":"https://git.kernel.org/stable/c/01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1706290f1a8de07a29c1b1e6bb61048699c578e2","name":"https://git.kernel.org/stable/c/1706290f1a8de07a29c1b1e6bb61048699c578e2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7bc85182be87f8a4a5418f12e3378d790cae630","name":"https://git.kernel.org/stable/c/d7bc85182be87f8a4a5418f12e3378d790cae630","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c231af4a0d14c125d7120f500ab71cd251cab36","name":"https://git.kernel.org/stable/c/5c231af4a0d14c125d7120f500ab71cd251cab36","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139356","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139356","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 d7bc85182be87f8a4a5418f12e3378d790cae630 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 5c231af4a0d14c125d7120f500ab71cd251cab36 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 1706290f1a8de07a29c1b1e6bb61048699c578e2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 a99c5a54227ba60c4c8e26a570d6d724c39f6ae1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 1d77fd886b4757388246bb8ab2fb805b72ddaed0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 47a9c0338f2e0d4178d77b0d2f529fe1fde84642 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.8 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.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 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/infiniband/sw/rxe/rxe_req.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d7bc85182be87f8a4a5418f12e3378d790cae630","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"5c231af4a0d14c125d7120f500ab71cd251cab36","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"1706290f1a8de07a29c1b1e6bb61048699c578e2","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"a99c5a54227ba60c4c8e26a570d6d724c39f6ae1","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"1d77fd886b4757388246bb8ab2fb805b72ddaed0","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"47a9c0338f2e0d4178d77b0d2f529fe1fde84642","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/sw/rxe/rxe_req.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.8"},{"lessThan":"4.8","status":"unaffected","version":"0","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.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","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.15.226","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]\n\nFor a user QP, rxe_post_send() takes the qp->is_user branch and\nnever runs init_send_wqe(), so\ndma.length/resid/num_sge/cur_sge/sge_offset all come straight from\nthe mmap'd SQ ring. In the inline send path finish_packet() uses\nsge_offset directly as an index:\n\n\tu8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset];\n\tmemcpy(payload_addr(pkt), tmp, payload);\n\ninline_data is a flex array whose capacity is qp->sq.max_inline, but\nsge_offset is a u32 from user space, so the source pointer is\ndisplaced arbitrarily past the WQE and the memcpy reads out of\nbounds.\ncommit 126c757e4cd4 (\"RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]\")\nadded num_sge/cur_sge checks on the send path but not sge_offset, the\nthird attacker-controlled index in the same struct.\n\nRead sge_offset once with READ_ONCE() and bound it (and the payload\nthat follows it) by qp->sq.max_inline before indexing, so the value\nthat is validated is the value that is used."}],"metrics":[{"cvssV3_1":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The bad wqe->dma.sge_offset is written by the local process into its mmap'd rxe send queue (rxe_init_sq, vmalloc_user); rxe_post_send() for qp->is_user only schedules send_task, and rxe_requester()->finish_packet() then uses it. Kernel QPs get sge_offset=0 from init_send_wqe(), and inbound RoCE packets never carry this field.\nAC:L - On a host with an rxe device, the attacker creates a QP, sets IB_SEND_INLINE, resid and an arbitrary u32 sge_offset in their own SQ slot, and calls IB_USER_VERBS_CMD_POST_SEND. finish_packet() indexes inline_data[sge_offset] with no race, no bound check and no victim state.\nPR:L - uverbs_devnode() creates /dev/infiniband/uverbsN with mode 0666, and creating a PD, CQ, RC/UD QP and AH and posting sends needs no capability, so any unprivileged local user can reach it. Creating the rxe link itself needs init-ns CAP_NET_ADMIN (RDMA_NL_ADMIN_PERM), but the attacker does not need to do that.\nUI:N - The attacker posts the malformed inline WQE on their own QP and receives the result on their own second QP. No other user has to act.\nS:U - The out-of-bounds memcpy runs in the host kernel's rxe requester worker on behalf of the local process. It does not cross a VM, guest-to-host or IOMMU boundary.\nC:H - memcpy(payload_addr(pkt), &inline_data[sge_offset], payload) reads up to one MTU (4096 bytes) from anywhere up to 4 GiB past the SQ in vmalloc space, which includes VMAP_STACK kernel stacks. That data is sent in a packet the attacker can loop back (RXE_LOOPBACK_MASK) to their own receive QP, giving a repeatable kernel memory read.\nI:N - The only write is into the skb that init_req_packet() allocates with paylen derived from the same payload, plus the resid and sge_offset updates inside the attacker's own WQE slot. The bug reads kernel memory out of bounds but never writes it.\nA:H - If sge_offset points at a vmalloc guard page or an unmapped range, the memcpy in finish_packet() page-faults and oopses the rxe worker. On older kernels this runs in tasklet (softirq) context and panics the host."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:28.270Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d7bc85182be87f8a4a5418f12e3378d790cae630"},{"url":"https://git.kernel.org/stable/c/5c231af4a0d14c125d7120f500ab71cd251cab36"},{"url":"https://git.kernel.org/stable/c/1706290f1a8de07a29c1b1e6bb61048699c578e2"},{"url":"https://git.kernel.org/stable/c/a99c5a54227ba60c4c8e26a570d6d724c39f6ae1"},{"url":"https://git.kernel.org/stable/c/01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7"},{"url":"https://git.kernel.org/stable/c/1d77fd886b4757388246bb8ab2fb805b72ddaed0"},{"url":"https://git.kernel.org/stable/c/47a9c0338f2e0d4178d77b0d2f529fe1fde84642"}],"title":"RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139356","datePublished":"2026-11-30T13:34:00.214Z","dateReserved":"2026-11-30T13:22:15.929Z","dateUpdated":"2026-12-01T05:42:28.270Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:01","lastModifiedDate":"2026-12-01 06:17:43","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139356","Ordinal":"1","Title":"RDMA/rxe: validate inline sge_offset in finish_packet() before i","CVE":"CVE-2026-139356","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139356","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]\n\nFor a user QP, rxe_post_send() takes the qp->is_user branch and\nnever runs init_send_wqe(), so\ndma.length/resid/num_sge/cur_sge/sge_offset all come straight from\nthe mmap'd SQ ring. In the inline send path finish_packet() uses\nsge_offset directly as an index:\n\n\tu8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset];\n\tmemcpy(payload_addr(pkt), tmp, payload);\n\ninline_data is a flex array whose capacity is qp->sq.max_inline, but\nsge_offset is a u32 from user space, so the source pointer is\ndisplaced arbitrarily past the WQE and the memcpy reads out of\nbounds.\ncommit 126c757e4cd4 (\"RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]\")\nadded num_sge/cur_sge checks on the send path but not sge_offset, the\nthird attacker-controlled index in the same struct.\n\nRead sge_offset once with READ_ONCE() and bound it (and the payload\nthat follows it) by qp->sq.max_inline before indexing, so the value\nthat is validated is the value that is used.","Type":"Description","Title":"RDMA/rxe: validate inline sge_offset in finish_packet() before i"}]}}}