{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139356",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.929Z",
        "datePublished": "2026-11-30T13:34:00.214Z",
        "dateUpdated": "2026-11-30T13:34:00.214Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:34:00.214Z"
            },
            "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/sw/rxe/rxe_req.c"
                    ],
                    "versions": [
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "d7bc85182be87f8a4a5418f12e3378d790cae630",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "5c231af4a0d14c125d7120f500ab71cd251cab36",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "1706290f1a8de07a29c1b1e6bb61048699c578e2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "a99c5a54227ba60c4c8e26a570d6d724c39f6ae1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "1d77fd886b4757388246bb8ab2fb805b72ddaed0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8700e3e7c4857d28ebaa824509934556da0b3e76",
                            "lessThan": "47a9c0338f2e0d4178d77b0d2f529fe1fde84642",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/sw/rxe/rxe_req.c"
                    ],
                    "versions": [
                        {
                            "version": "4.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}