{
  "id": "CVE-2025-22086",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22086",
  "published_at": "2025-04-16T14:12:34.56Z",
  "title": "RDMA/mlx5: Fix mlx5_poll_one() cur_qp update flow",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:A/AC:L/PR:N/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/mlx5: Fix mlx5_poll_one() cur_qp update flow\n\nWhen cur_qp isn't NULL, in order to avoid fetching the QP from\nthe radix tree again we check if the next cqe QP is identical to\nthe one we already have.\n\nThe bug however is that we are checking if the QP is identical by\nchecking the QP number inside the CQE against the QP number inside the\nmlx5_ib_qp, but that's wrong since the QP number from the CQE is from\nFW so it should be matched against mlx5_core_qp which is our FW QP\nnumber.\n\nOtherwise we could use the wrong QP when handling a CQE which could\ncause the kernel trace below.\n\nThis issue is mainly noticeable over QPs 0 \u0026 1, since for now they are\nthe only QPs in our driver whereas the QP number inside mlx5_ib_qp\ndoesn't match the QP number inside mlx5_core_qp.\n\nBUG: kernel NULL pointer dereference, address: 0000000000000012\n #PF: supervisor read access in kernel mode\n #PF: error_code(0x0000) - not-present page\n PGD 0 P4D 0\n Oops: Oops: 0000 [#1] SMP\n CPU: 0 UID: 0 PID: 7927 Comm: kworker/u62:1 Not tainted 6.14.0-rc3+ #189\n Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014\n Workqueue: ib-comp-unb-wq ib_cq_poll_work [ib_core]\n RIP: 0010:mlx5_ib_poll_cq+0x4c7/0xd90 [mlx5_ib]\n Code: 03 00 00 8d 58 ff 21 cb 66 39 d3 74 39 48 c7 c7 3c 89 6e a0 0f b7 db e8 b7 d2 b3 e0 49 8b 86 60 03 00 00 48 c7 c7 4a 89 6e a0 \u003c0f\u003e b7 5c 98 02 e8 9f d2 b3 e0 41 0f b7 86 78 03 00 00 83 e8 01 21\n RSP: 0018:ffff88810511bd60 EFLAGS: 00010046\n RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000000\n RDX: 0000000000000000 RSI: ffff88885fa1b3c0 RDI: ffffffffa06e894a\n RBP: 00000000000000b0 R08: 0000000000000000 R09: ffff88810511bc10\n R10: 0000000000000001 R11: 0000000000000001 R12: ffff88810d593000\n R13: ffff88810e579108 R14: ffff888105146000 R15: 00000000000000b0\n FS:  0000000000000000(0000) GS:ffff88885fa00000(0000) knlGS:0000000000000000\n CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n CR2: 0000000000000012 CR3: 00000001077e6001 CR4: 0000000000370eb0\n Call Trace:\n  \u003cTASK\u003e\n  ? __die+0x20/0x60\n  ? page_fault_oops+0x150/0x3e0\n  ? exc_page_fault+0x74/0x130\n  ? asm_exc_page_fault+0x22/0x30\n  ? mlx5_ib_poll_cq+0x4c7/0xd90 [mlx5_ib]\n  __ib_process_cq+0x5a/0x150 [ib_core]\n  ib_cq_poll_work+0x31/0x90 [ib_core]\n  process_one_work+0x169/0x320\n  worker_thread+0x288/0x3a0\n  ? work_busy+0xb0/0xb0\n  kthread+0xd7/0x1f0\n  ? kthreads_online_cpu+0x130/0x130\n  ? kthreads_online_cpu+0x130/0x130\n  ret_from_fork+0x2d/0x50\n  ? kthreads_online_cpu+0x130/0x130\n  ret_from_fork_asm+0x11/0x20\n  \u003c/TASK\u003e",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c 3b97d77049856865ac5ce8ffbc6e716928310f7f",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c 856d9e5d72dc44eca6d5a153581c58fbd84e92e1",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c f0447ceb8a31d79bee7144f98f9a13f765531e1a",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c dc7139b7031d877acd73d7eff55670f22f48cd5e",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c 7c51a6964b45b6d40027abd77e89cef30d26dc5a",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c cad677085274ecf9c7565b5bfc5d2e49acbf174c",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c 55c65a64aefa6267b964d90e9a4039cb68ec73a5",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c d52636eb13ccba448a752964cc6fc49970912874",
          "\u003e= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \u003c 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd"
        ],
        "fixed_in": [
          "3b97d77049856865ac5ce8ffbc6e716928310f7f",
          "856d9e5d72dc44eca6d5a153581c58fbd84e92e1",
          "f0447ceb8a31d79bee7144f98f9a13f765531e1a",
          "dc7139b7031d877acd73d7eff55670f22f48cd5e",
          "7c51a6964b45b6d40027abd77e89cef30d26dc5a",
          "cad677085274ecf9c7565b5bfc5d2e49acbf174c",
          "55c65a64aefa6267b964d90e9a4039cb68ec73a5",
          "d52636eb13ccba448a752964cc6fc49970912874",
          "5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.11"
        ],
        "fixed_in": [
          "0",
          "5.4.292",
          "5.10.236",
          "5.15.180",
          "6.1.134",
          "6.6.87",
          "6.12.23",
          "6.13.11",
          "6.14.2",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3b97d77049856865ac5ce8ffbc6e716928310f7f or 856d9e5d72dc44eca6d5a153581c58fbd84e92e1 or f0447ceb8a31d79bee7144f98f9a13f765531e1a or dc7139b7031d877acd73d7eff55670f22f48cd5e or 7c51a6964b45b6d40027abd77e89cef30d26dc5a or cad677085274ecf9c7565b5bfc5d2e49acbf174c or 55c65a64aefa6267b964d90e9a4039cb68ec73a5 or d52636eb13ccba448a752964cc6fc49970912874 or 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd or later.",
      "Upgrade Linux to 0 or 5.4.292 or 5.10.236 or 5.15.180 or 6.1.134 or 6.6.87 or 6.12.23 or 6.13.11 or 6.14.2 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
