{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-46265",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-46265"
  ],
  "published": "2026-06-03T15:49:47Z",
  "summary": "RDMA/hns: Fix WQ_MEM_RECLAIM warning",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: Fix WQ_MEM_RECLAIM warning\n\nWhen sunrpc is used, if a reset triggered, our wq may lead the\nfollowing trace:\n\nworkqueue: WQ_MEM_RECLAIM xprtiod:xprt_rdma_connect_worker [rpcrdma]\nis flushing !WQ_MEM_RECLAIM hns_roce_irq_workq:flush_work_handle\n[hns_roce_hw_v2]\nWARNING: CPU: 0 PID: 8250 at kernel/workqueue.c:2644 check_flush_dependency+0xe0/0x144\nCall trace:\n  check_flush_dependency+0xe0/0x144\n  start_flush_work.constprop.0+0x1d0/0x2f0\n  __flush_work.isra.0+0x40/0xb0\n  flush_work+0x14/0x30\n  hns_roce_v2_destroy_qp+0xac/0x1e0 [hns_roce_hw_v2]\n  ib_destroy_qp_user+0x9c/0x2b4\n  rdma_destroy_qp+0x34/0xb0\n  rpcrdma_ep_destroy+0x28/0xcc [rpcrdma]\n  rpcrdma_ep_put+0x74/0xb4 [rpcrdma]\n  rpcrdma_xprt_disconnect+0x1d8/0x260 [rpcrdma]\n  xprt_rdma_connect_worker+0xc0/0x120 [rpcrdma]\n  process_one_work+0x1cc/0x4d0\n  worker_thread+0x154/0x414\n  kthread+0x104/0x144\n  ret_from_fork+0x10/0x18\n\nSince QP destruction frees memory, this wq should have the WQ_MEM_RECLAIM.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.165",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-46265"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/12761bd0ae16a80f237c2a65ab1b1064076cc74a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/70a5eb757ace5bd627a36f04d871eaf85def424d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/562c96b1393da2df3ea62173c84117b39da353b9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0cbec8b49270f3f0600b8e3ef5e8f0d233dcea27"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c5ef9a1bcf5b597695d9c2e6ac452e9f89521862"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c0a26bbd3f99b7b03f072e3409aff4e6ec8af6f6"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T13:16:28Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.5,
      "cvss_v3_severity": "High",
      "scenario": "AV:N - The bug is reached when an RPC-over-RDMA path tears down a HiSilicon HNS queue pair; remote NFS/RDMA peers can force disconnect/reconnect and QP destruction on internet- or fabric-facing storage nodes (svc_rdma / rpcrdma), which is network-driven rather than purely local ioctl access.\nAC:L - Once NFS-over-RDMA and HNS RoCE are enabled, a remote peer can repeatedly trigger disconnect and failed reconnect work; combined with routine memory-reclaim pressure (PF_MEMALLOC on the NFS swap path) or NIC reset, the WARN/deadlock path is attacker-influenceable without rare one-off victim state.\nPR:N - On an NFS-over-RDMA server the vulnerable ib_destroy_qp/flush_work path runs while handling RDMA CM disconnects from network clients, before any per-file NFS authorization; no local UNIX privileges on the victim are required beyond the service already being exposed.\nUI:N - Exploitation requires only network traffic and kernel-side RPC/RDMA handling; no end-user actions such as mounting a filesystem or clicking a link are needed on the victim.\nS:U - Impact is confined to kernel workqueue forward-progress and availability on the host running the HNS driver; it does not cross VM, container, or IOMMU security boundaries.\nC:N - The flaw is a missing WQ_MEM_RECLAIM flag leading to check_flush_dependency WARN_ONCE and possible reclaim deadlock; there is no memory corruption, out-of-bounds access, or use-after-free that could yield information disclosure.\nI:N - No attacker-controlled writes, type confusion, or code-execution primitive exist; the failure mode is a workqueue dependency violation during QP flush/destroy, not integrity compromise of data or code.\nA:H - Violating the workqueue forward-progress rule can deadlock memory reclaim, and the observed WARN_ONCE becomes a kernel panic when panic_on_warn is enabled; even without panic, a stuck reclaim path is a full host availability failure."
    }
  }
}
