GHSA-447Q-W366-4W4C

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()

rxe_rcv() puts pkt->qp at its drop label, but leaves pkt->qp uninitialized on the two paths that take an early goto:

if (unlikely(skb->len < RXE_BTH_BYTES))
    goto drop;

if (rxe_chk_dgid(rxe, skb) < 0)
    goto drop;

pkt->opcode = bth_opcode(pkt);
pkt->psn = bth_psn(pkt);
pkt->qp = NULL;     <- too late for the gotos above
...

drop: if (pkt->qp) rxe_put(pkt->qp);

pkt points into skb->cb, which rxe does not own at this point: the network stack has used that space for its own state. For IPv6, ip6_rcv_core() memsets inet6_skb_parm and then writes

IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);

at offset 14, so the qword at cb + 8, which is where pkt->qp lives, reads back as 0x0006000000000000 for every IPv6 packet.

Any IPv6 datagram to port 4791 whose payload is shorter than the BTH takes the first goto and reaches the drop label with that value, so rxe_put() runs refcount_dec_and_test() on 0x0006000000000150 and the kernel faults, in softirq, on a non-canonical address:

general protection fault, probably for non-canonical address
0x0006000000000150: 0000 [#1] PREEMPT SMP
RIP: 0010:__rxe_put+0x.../...
Call Trace:
 <IRQ>
 rxe_rcv+0x.../... [rdma_rxe]
 rxe_udp_encap_recv+0x.../... [rdma_rxe]
 udp_queue_rcv_one_skb
 ...
Kernel panic - not syncing: Fatal exception in interrupt

The fault happens in softirq, so it panics even with panic_on_oops=0, and with panic=0 the machine hangs until it is power cycled. A remote sender only needs to send an empty UDP datagram to port 4791; no RDMA connection, GID or other state is involved and the rxe socket is bound in init_net.

IPv4 is not affected: ip_rcv_core() memsets the whole inet_skb_parm, so the pkt->qp slot is zero there.

Fix by clearing pkt->qp before the first early exit. pkt->qp is only ever assigned a reference-owning value by hdr_check() and rxe_rcv_mcast_pkt(), both of which run after this point, so the put at the drop label stays balanced.

The ordering has been unsafe since the driver was merged: the two early gotos have preceded pkt->qp = NULL in every version since 8700e3e7c485.

Testing done: the driver was built and run on a 6.2 vendor tree that carries this code, where a single 0-byte IPv6 datagram to port 4791 reproduced the panic above (that tree does not pull the UDP header in rxe_udp_encap_recv(), so payloads of 0..3 bytes reach the first goto there, versus 0..11 on mainline). With this change, the same packets are dropped as intended and tracing the drop label shows pkt->qp is 0 on every path that reaches it. Not done: the mainline tree was not built in the environment used to prepare this, and the reproducer is left out of this message on purpose - both are available on request.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139288"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:52Z",
    "severity": "HIGH"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Clear pkt-\u003eqp before the early drop exits in rxe_rcv()\n\nrxe_rcv() puts pkt-\u003eqp at its drop label, but leaves pkt-\u003eqp\nuninitialized on the two paths that take an early goto:\n\n\tif (unlikely(skb-\u003elen \u003c RXE_BTH_BYTES))\n\t\tgoto drop;\n\n\tif (rxe_chk_dgid(rxe, skb) \u003c 0)\n\t\tgoto drop;\n\n\tpkt-\u003eopcode = bth_opcode(pkt);\n\tpkt-\u003epsn = bth_psn(pkt);\n\tpkt-\u003eqp = NULL;\t\t\u003c- too late for the gotos above\n\t...\ndrop:\n\tif (pkt-\u003eqp)\n\t\trxe_put(pkt-\u003eqp);\n\npkt points into skb-\u003ecb, 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)-\u003enhoff = offsetof(struct ipv6hdr, nexthdr);\n\nat offset 14, so the qword at cb + 8, which is where pkt-\u003eqp 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 \u003cIRQ\u003e\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-\u003eqp slot is zero there.\n\nFix by clearing pkt-\u003eqp before the first early exit.  pkt-\u003eqp 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-\u003eqp = 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-\u003eqp 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.",
  "id": "GHSA-447q-w366-4w4c",
  "modified": "2026-12-01T06:31:21Z",
  "published": "2026-11-30T15:32:25Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139288"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.