{
  "id": "CVE-2025-38582",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38582",
  "published_at": "2025-08-19T17:03:04.535Z",
  "title": "RDMA/hns: Fix double destruction of rsv_qp",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: Fix double destruction of rsv_qp\n\nrsv_qp may be double destroyed in error flow, first in free_mr_init(),\nand then in hns_roce_exit(). Fix it by moving the free_mr_init() call\ninto hns_roce_v2_init().\n\nlist_del corruption, ffff589732eb9b50-\u003enext is LIST_POISON1 (dead000000000100)\nWARNING: CPU: 8 PID: 1047115 at lib/list_debug.c:53 __list_del_entry_valid+0x148/0x240\n...\nCall trace:\n __list_del_entry_valid+0x148/0x240\n hns_roce_qp_remove+0x4c/0x3f0 [hns_roce_hw_v2]\n hns_roce_v2_destroy_qp_common+0x1dc/0x5f4 [hns_roce_hw_v2]\n hns_roce_v2_destroy_qp+0x22c/0x46c [hns_roce_hw_v2]\n free_mr_exit+0x6c/0x120 [hns_roce_hw_v2]\n hns_roce_v2_exit+0x170/0x200 [hns_roce_hw_v2]\n hns_roce_exit+0x118/0x350 [hns_roce_hw_v2]\n __hns_roce_hw_v2_init_instance+0x1c8/0x304 [hns_roce_hw_v2]\n hns_roce_hw_v2_reset_notify_init+0x170/0x21c [hns_roce_hw_v2]\n hns_roce_hw_v2_reset_notify+0x6c/0x190 [hns_roce_hw_v2]\n hclge_notify_roce_client+0x6c/0x160 [hclge]\n hclge_reset_rebuild+0x150/0x5c0 [hclge]\n hclge_reset+0x10c/0x140 [hclge]\n hclge_reset_subtask+0x80/0x104 [hclge]\n hclge_reset_service_task+0x168/0x3ac [hclge]\n hclge_service_task+0x50/0x100 [hclge]\n process_one_work+0x250/0x9a0\n worker_thread+0x324/0x990\n kthread+0x190/0x210\n ret_from_fork+0x10/0x18",
  "cwe": "CWE-415",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, \u003c 5a791715803304bf81ae2a3a278f606e36b82481",
          "\u003e= d2d9c5127122745da6e887f451dd248cfeffca33, \u003c 067ca15be8b8342931536b66206c496e76864ecf",
          "\u003e= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \u003c dab173bae3303f074f063750a8dead2550d8c782",
          "\u003e= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \u003c fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea",
          "\u003e= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \u003c 10b083dbba22be19baa848432b6f25aa68ab2db5",
          "\u003e= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \u003c c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8",
          "dac2723d8bfa9cf5333f477741e6e5fa1ed34645",
          "60595923371c2ebe7faf82536c47eb0c967e3425",
          "\u003e= 6.1.113, \u003c 6.1.191",
          "\u003e= 6.6.54, \u003c 6.6.160",
          "\u003e= 6.10.13, \u003c 6.11",
          "\u003e= 6.11.2, \u003c 6.12"
        ],
        "fixed_in": [
          "5a791715803304bf81ae2a3a278f606e36b82481",
          "067ca15be8b8342931536b66206c496e76864ecf",
          "dab173bae3303f074f063750a8dead2550d8c782",
          "fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea",
          "10b083dbba22be19baa848432b6f25aa68ab2db5",
          "c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8",
          "6.1.191",
          "6.6.160",
          "6.11",
          "6.12"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.42",
          "6.15.10",
          "6.16.1",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5a791715803304bf81ae2a3a278f606e36b82481 or 067ca15be8b8342931536b66206c496e76864ecf or dab173bae3303f074f063750a8dead2550d8c782 or fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea or 10b083dbba22be19baa848432b6f25aa68ab2db5 or c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8 or 6.1.191 or 6.6.160 or 6.11 or 6.12 or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
