{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99212",
  "modified": "2026-11-01T05:30:01Z",
  "upstream": [
    "CVE-2026-99212"
  ],
  "published": "2026-10-28T11:36:32Z",
  "summary": "net/rds: don't let the rdma_cm destroy an id RDS still owns on route failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/rds: don't let the rdma_cm destroy an id RDS still owns on route failure\n\nrds_rdma_cm_event_handler_cmn() hands the return value of\nrdma_resolve_route() straight back to the rdma_cm on\nRDMA_CM_EVENT_ADDR_RESOLVED.  A synchronous failure there - -ENOMEM\nfrom the route work allocation, an SA query that cannot be set up, a\nRoCE route with no usable device - makes addr_handler() destroy the\nid the event was delivered on.  That id is ic->i_cm_id, and nothing\nclears the pointer: the connection sits in RDS_CONN_CONNECTING with a\nfreed id until its shutdown calls rdma_disconnect() and\nrdma_destroy_id() on it.\n\nThe ROUTE_RESOLVED case already avoids this: rds_ib_cm_initiate_connect()\nforces a zero return while ic->i_cm_id == cm_id, as the comment there\nexplains.  Do the same here - drop the connection and return 0 - so\nthe id stays RDS's to destroy from the shutdown, and the reconnect\ngets a fresh one.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.191",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99212"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/664fd3205cbec71ac52c005ee705cd917bb6fb1a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b8f141f65885810e24fc23b8a71692db62d535bf"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e677eda15df7d5ce256654343418043c7ffd6f9b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/92143c5d80382588d5a3047a4f14023ee9ef6485"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a7c7d0ff876377fea7ae876a28d6df8d9349df57"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/91ece3efa064f0b3b3c67b9b045d9eeb4a034e43"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/98d446b7c013254a8a7b49720557676a3a851fde"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-31T12:58:00Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.0,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - An unprivileged process reaches patched rds_rdma_cm_event_handler_cmn() through AF_RDS sendmsg() \u2192 rds_connect_worker() \u2192 rds_ib_conn_path_connect() \u2192 addr_handler(). The failure occurs in local rdma_resolve_route() setup before any RDS message reaches a peer; no remote protocol message carries the trigger.\nAC:H - The synchronous error requires cma_resolve_ib_route() allocation/SA setup failure or cma_resolve_iboe_route() finding no usable netdevice or MTU. Choosing an RDS destination cannot reliably create those allocator, fabric-manager, or device states; an ordinary unreachable peer instead fails outside this ownership-error path.\nPR:L - rds_create(), rds_bind(), and rds_sendmsg() contain no capability check, and rds_ib_laddr_check() requires init_net but not root. Thus an ordinary host user can bind a configured IB/RoCE address and initiate the affected connection.\nUI:N - The attacker performs the AF_RDS sendmsg() themselves and can subsequently use RDS_CMSG_RDMA_MAP to reach __rds_rdma_map() \u2192 rds_ib_get_mr(), which dereferences the stale ic->i_cm_id. No victim action is required.\nS:U - The freed rdma_id_private and subsequent stale-pointer operations remain within the host kernel's RDS/RDMA security authority; no VM, IOMMU, or other distinct boundary is crossed.\nC:H - addr_handler() frees rdma_id_private while ic->i_cm_id retains its address, and rds_ib_get_mr() later reads qp from that reclaimed object. This kernel heap UAF permits controlled slab reuse and can be leveraged for arbitrary memory disclosure.\nI:H - If the reclaimed i_cm_id supplies a non-NULL qp, rds_ib_post_reg_frmr() passes it to ib_post_send(), reaching device operations through freed data; shutdown also calls rdma_disconnect() and rdma_destroy_id() on the stale ID. These provide control-flow and double-free corruption primitives.\nA:H - rds_ib_get_mr() can oops while reading ic->i_cm_id->qp, while rds_ib_conn_path_shutdown() later disconnects and destroys the already-freed ID. Either UAF path can panic the kernel."
    }
  }
}
