{"api_version":"1","generated_at":"2026-11-30T16:45:42+00:00","cve":"CVE-2026-139288","urls":{"html":"https://cve.report/CVE-2026-139288","api":"https://cve.report/api/cve/CVE-2026-139288.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139288","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139288"},"summary":{"title":"RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()\n\nrxe_rcv() puts pkt->qp at its drop label, but leaves pkt->qp\nuninitialized on the two paths that take an early goto:\n\n\tif (unlikely(skb->len < RXE_BTH_BYTES))\n\t\tgoto drop;\n\n\tif (rxe_chk_dgid(rxe, skb) < 0)\n\t\tgoto drop;\n\n\tpkt->opcode = bth_opcode(pkt);\n\tpkt->psn = bth_psn(pkt);\n\tpkt->qp = NULL;\t\t<- too late for the gotos above\n\t...\ndrop:\n\tif (pkt->qp)\n\t\trxe_put(pkt->qp);\n\npkt points into skb->cb, which rxe does not own at this point: the\nnetwork stack has used that space for its own state.  For IPv6,\nip6_rcv_core() memsets inet6_skb_parm and then writes\n\n\tIP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);\n\nat offset 14, so the qword at cb + 8, which is where pkt->qp lives,\nreads back as 0x0006000000000000 for every IPv6 packet.\n\nAny IPv6 datagram to port 4791 whose payload is shorter than the BTH\ntakes the first goto and reaches the drop label with that value, so\nrxe_put() runs refcount_dec_and_test() on 0x0006000000000150 and the\nkernel faults, in softirq, on a non-canonical address:\n\n\tgeneral protection fault, probably for non-canonical address\n\t0x0006000000000150: 0000 [#1] PREEMPT SMP\n\tRIP: 0010:__rxe_put+0x.../...\n\tCall Trace:\n\t <IRQ>\n\t rxe_rcv+0x.../... [rdma_rxe]\n\t rxe_udp_encap_recv+0x.../... [rdma_rxe]\n\t udp_queue_rcv_one_skb\n\t ...\n\tKernel panic - not syncing: Fatal exception in interrupt\n\nThe fault happens in softirq, so it panics even with panic_on_oops=0,\nand with panic=0 the machine hangs until it is power cycled.  A remote\nsender only needs to send an empty UDP datagram to port 4791; no RDMA\nconnection, GID or other state is involved and the rxe socket is bound\nin init_net.\n\nIPv4 is not affected: ip_rcv_core() memsets the whole inet_skb_parm, so\nthe pkt->qp slot is zero there.\n\nFix by clearing pkt->qp before the first early exit.  pkt->qp is only\never assigned a reference-owning value by hdr_check() and\nrxe_rcv_mcast_pkt(), both of which run after this point, so the put at\nthe drop label stays balanced.\n\nThe ordering has been unsafe since the driver was merged: the two early\ngotos have preceded pkt->qp = NULL in every version since 8700e3e7c485.\n\nTesting done: the driver was built and run on a 6.2 vendor tree that\ncarries this code, where a single 0-byte IPv6 datagram to port 4791\nreproduced the panic above (that tree does not pull the UDP header in\nrxe_udp_encap_recv(), so payloads of 0..3 bytes reach the first goto\nthere, versus 0..11 on mainline).  With this change, the same packets\nare dropped as intended and tracing the drop label shows pkt->qp is 0\non every path that reaches it.  Not done: the mainline tree was not\nbuilt in the environment used to prepare this, and the reproducer is\nleft out of this message on purpose - both are available on request.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:52","updated_at":"2026-11-30 14:18:52"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d","name":"https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80","name":"https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8","name":"https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177","name":"https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c","name":"https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c","name":"https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e","name":"https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae","name":"https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139288","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139288","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 01b8c1cb0504b1f03850bf7b6a30c532508a4177 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 545ae9f2702c5ea6999c92558f5b0733f38fc83c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 fc4959ae561c625f0960e526d9f5fcb11125249c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 6b3dc360387a343fac825ae74da67de01a662cd8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 9d370d6492653df247fe3df41d08a07792ae4cae git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 2c2e0650b71be23998d7370fc439f7a5ec0eab80 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 7d7214b39b14c9763c14445b139f63369063b65e 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.10.275 5.10.* 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_recv.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"01b8c1cb0504b1f03850bf7b6a30c532508a4177","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"545ae9f2702c5ea6999c92558f5b0733f38fc83c","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"fc4959ae561c625f0960e526d9f5fcb11125249c","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"6b3dc360387a343fac825ae74da67de01a662cd8","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"9d370d6492653df247fe3df41d08a07792ae4cae","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"2c2e0650b71be23998d7370fc439f7a5ec0eab80","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"7d7214b39b14c9763c14445b139f63369063b65e","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/sw/rxe/rxe_recv.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.10.*","status":"unaffected","version":"5.10.275","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.10.275","versionStartIncluding":"4.8","vulnerable":true},{"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: Clear pkt->qp before the early drop exits in rxe_rcv()\n\nrxe_rcv() puts pkt->qp at its drop label, but leaves pkt->qp\nuninitialized on the two paths that take an early goto:\n\n\tif (unlikely(skb->len < RXE_BTH_BYTES))\n\t\tgoto drop;\n\n\tif (rxe_chk_dgid(rxe, skb) < 0)\n\t\tgoto drop;\n\n\tpkt->opcode = bth_opcode(pkt);\n\tpkt->psn = bth_psn(pkt);\n\tpkt->qp = NULL;\t\t<- too late for the gotos above\n\t...\ndrop:\n\tif (pkt->qp)\n\t\trxe_put(pkt->qp);\n\npkt points into skb->cb, which rxe does not own at this point: the\nnetwork stack has used that space for its own state.  For IPv6,\nip6_rcv_core() memsets inet6_skb_parm and then writes\n\n\tIP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);\n\nat offset 14, so the qword at cb + 8, which is where pkt->qp lives,\nreads back as 0x0006000000000000 for every IPv6 packet.\n\nAny IPv6 datagram to port 4791 whose payload is shorter than the BTH\ntakes the first goto and reaches the drop label with that value, so\nrxe_put() runs refcount_dec_and_test() on 0x0006000000000150 and the\nkernel faults, in softirq, on a non-canonical address:\n\n\tgeneral protection fault, probably for non-canonical address\n\t0x0006000000000150: 0000 [#1] PREEMPT SMP\n\tRIP: 0010:__rxe_put+0x.../...\n\tCall Trace:\n\t <IRQ>\n\t rxe_rcv+0x.../... [rdma_rxe]\n\t rxe_udp_encap_recv+0x.../... [rdma_rxe]\n\t udp_queue_rcv_one_skb\n\t ...\n\tKernel panic - not syncing: Fatal exception in interrupt\n\nThe fault happens in softirq, so it panics even with panic_on_oops=0,\nand with panic=0 the machine hangs until it is power cycled.  A remote\nsender only needs to send an empty UDP datagram to port 4791; no RDMA\nconnection, GID or other state is involved and the rxe socket is bound\nin init_net.\n\nIPv4 is not affected: ip_rcv_core() memsets the whole inet_skb_parm, so\nthe pkt->qp slot is zero there.\n\nFix by clearing pkt->qp before the first early exit.  pkt->qp is only\never assigned a reference-owning value by hdr_check() and\nrxe_rcv_mcast_pkt(), both of which run after this point, so the put at\nthe drop label stays balanced.\n\nThe ordering has been unsafe since the driver was merged: the two early\ngotos have preceded pkt->qp = NULL in every version since 8700e3e7c485.\n\nTesting done: the driver was built and run on a 6.2 vendor tree that\ncarries this code, where a single 0-byte IPv6 datagram to port 4791\nreproduced the panic above (that tree does not pull the UDP header in\nrxe_udp_encap_recv(), so payloads of 0..3 bytes reach the first goto\nthere, versus 0..11 on mainline).  With this change, the same packets\nare dropped as intended and tracing the drop label shows pkt->qp is 0\non every path that reaches it.  Not done: the mainline tree was not\nbuilt in the environment used to prepare this, and the reproducer is\nleft out of this message on purpose - both are available on request."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:22.151Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177"},{"url":"https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c"},{"url":"https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c"},{"url":"https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8"},{"url":"https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae"},{"url":"https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d"},{"url":"https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80"},{"url":"https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e"}],"title":"RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139288","datePublished":"2026-11-30T13:33:22.151Z","dateReserved":"2026-11-30T13:22:15.925Z","dateUpdated":"2026-11-30T13:33:22.151Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:52","lastModifiedDate":"2026-11-30 14:18:52","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139288","Ordinal":"1","Title":"RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()","CVE":"CVE-2026-139288","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139288","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()\n\nrxe_rcv() puts pkt->qp at its drop label, but leaves pkt->qp\nuninitialized on the two paths that take an early goto:\n\n\tif (unlikely(skb->len < RXE_BTH_BYTES))\n\t\tgoto drop;\n\n\tif (rxe_chk_dgid(rxe, skb) < 0)\n\t\tgoto drop;\n\n\tpkt->opcode = bth_opcode(pkt);\n\tpkt->psn = bth_psn(pkt);\n\tpkt->qp = NULL;\t\t<- too late for the gotos above\n\t...\ndrop:\n\tif (pkt->qp)\n\t\trxe_put(pkt->qp);\n\npkt points into skb->cb, which rxe does not own at this point: the\nnetwork stack has used that space for its own state.  For IPv6,\nip6_rcv_core() memsets inet6_skb_parm and then writes\n\n\tIP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);\n\nat offset 14, so the qword at cb + 8, which is where pkt->qp lives,\nreads back as 0x0006000000000000 for every IPv6 packet.\n\nAny IPv6 datagram to port 4791 whose payload is shorter than the BTH\ntakes the first goto and reaches the drop label with that value, so\nrxe_put() runs refcount_dec_and_test() on 0x0006000000000150 and the\nkernel faults, in softirq, on a non-canonical address:\n\n\tgeneral protection fault, probably for non-canonical address\n\t0x0006000000000150: 0000 [#1] PREEMPT SMP\n\tRIP: 0010:__rxe_put+0x.../...\n\tCall Trace:\n\t <IRQ>\n\t rxe_rcv+0x.../... [rdma_rxe]\n\t rxe_udp_encap_recv+0x.../... [rdma_rxe]\n\t udp_queue_rcv_one_skb\n\t ...\n\tKernel panic - not syncing: Fatal exception in interrupt\n\nThe fault happens in softirq, so it panics even with panic_on_oops=0,\nand with panic=0 the machine hangs until it is power cycled.  A remote\nsender only needs to send an empty UDP datagram to port 4791; no RDMA\nconnection, GID or other state is involved and the rxe socket is bound\nin init_net.\n\nIPv4 is not affected: ip_rcv_core() memsets the whole inet_skb_parm, so\nthe pkt->qp slot is zero there.\n\nFix by clearing pkt->qp before the first early exit.  pkt->qp is only\never assigned a reference-owning value by hdr_check() and\nrxe_rcv_mcast_pkt(), both of which run after this point, so the put at\nthe drop label stays balanced.\n\nThe ordering has been unsafe since the driver was merged: the two early\ngotos have preceded pkt->qp = NULL in every version since 8700e3e7c485.\n\nTesting done: the driver was built and run on a 6.2 vendor tree that\ncarries this code, where a single 0-byte IPv6 datagram to port 4791\nreproduced the panic above (that tree does not pull the UDP header in\nrxe_udp_encap_recv(), so payloads of 0..3 bytes reach the first goto\nthere, versus 0..11 on mainline).  With this change, the same packets\nare dropped as intended and tracing the drop label shows pkt->qp is 0\non every path that reaches it.  Not done: the mainline tree was not\nbuilt in the environment used to prepare this, and the reproducer is\nleft out of this message on purpose - both are available on request.","Type":"Description","Title":"RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()"}]}}}