{
  "id": "CVE-2026-53230",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53230",
  "published_at": "2026-06-25T08:39:29.21Z",
  "title": "net/mlx5: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/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\nnet/mlx5: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list\n\nmlx5_query_nic_vport_mac_list() sizes its firmware command buffer using\nthe PF's log_max_current_uc/mc_list capabilities. When querying a VF\nvport with a larger configured max (via devlink), the firmware response\ncan overflow this buffer:\n\n BUG: KASAN: slab-out-of-bounds in mlx5_query_nic_vport_mac_list+0x453/0x4c0 [mlx5_core]\n Read of size 4 at addr ff1100013ffc8a12 by task kworker/u96:2/385\n\n CPU: 12 UID: 0 PID: 385 Comm: kworker/u96:2 Not tainted 7.0.0-rc6+ #1 PREEMPT\n Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)\n Workqueue: mlx5_esw_wq esw_vport_change_handler [mlx5_core]\n Call Trace:\n  \u003cTASK\u003e\n  dump_stack_lvl+0x69/0xa0\n  print_report+0x176/0x4e4\n  kasan_report+0xc8/0x100\n  mlx5_query_nic_vport_mac_list+0x453/0x4c0 [mlx5_core]\n  esw_update_vport_addr_list+0x2e3/0xda0 [mlx5_core]\n  esw_vport_change_handle_locked+0xa1f/0x1060 [mlx5_core]\n  esw_vport_change_handler+0x6a/0x90 [mlx5_core]\n  process_one_work+0x87f/0x15e0\n  worker_thread+0x62b/0x1020\n  kthread+0x375/0x490\n  ret_from_fork+0x4dc/0x810\n  ret_from_fork_asm+0x11/0x20\n  \u003c/TASK\u003e\n\nFix by querying the vport's own HCA caps to size the buffer correctly.\nRefactor the function to allocate and return the MAC list internally,\nremoving the caller's dependency on knowing the correct max.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 87149f3e53f3839454b837f87a2ec7c926775a6a",
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 41781f2789309462520a93822e946521ed78f97f",
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 537d87784e81c3d7037525b99416455cee088cdc",
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 0f807764bb122fd63aa45f4229cb1ef2679fbd40",
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 2398e497389ed4be43f7cfbab499b49cec7dae1a",
          "\u003e= e16aea2744abea612c27ee0eef606c6a6a8204de, \u003c 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074"
        ],
        "fixed_in": [
          "87149f3e53f3839454b837f87a2ec7c926775a6a",
          "41781f2789309462520a93822e946521ed78f97f",
          "537d87784e81c3d7037525b99416455cee088cdc",
          "0f807764bb122fd63aa45f4229cb1ef2679fbd40",
          "2398e497389ed4be43f7cfbab499b49cec7dae1a",
          "894e036a24a26a6dd7b17d8d3fb5c53ab48a6074"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.5"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.143",
          "6.12.94",
          "6.18.36",
          "7.0.13",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 87149f3e53f3839454b837f87a2ec7c926775a6a or 41781f2789309462520a93822e946521ed78f97f or 537d87784e81c3d7037525b99416455cee088cdc or 0f807764bb122fd63aa45f4229cb1ef2679fbd40 or 2398e497389ed4be43f7cfbab499b49cec7dae1a or 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074 or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
