{
  "id": "CVE-2025-21800",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21800",
  "published_at": "2025-02-27T20:00:54.884Z",
  "title": "net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "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\nnet/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset\n\nWhen bit offset for HWS_SET32 macro is negative,\nUBSAN complains about the shift-out-of-bounds:\n\n  UBSAN: shift-out-of-bounds in\n  drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2\n  shift exponent -8 is negative",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 74a778b4a63faef9ff02aad0d332b209835f93e1, \u003c 92cff996624c4757d5bbace3dfa3f1567ba94143",
          "\u003e= 74a778b4a63faef9ff02aad0d332b209835f93e1, \u003c 69c676c0ded472713e6d1b3a456b3c4f52f66f0e",
          "\u003e= 74a778b4a63faef9ff02aad0d332b209835f93e1, \u003c be482f1d10da781db9445d2753c1e3f1fd82babf"
        ],
        "fixed_in": [
          "92cff996624c4757d5bbace3dfa3f1567ba94143",
          "69c676c0ded472713e6d1b3a456b3c4f52f66f0e",
          "be482f1d10da781db9445d2753c1e3f1fd82babf"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.13",
          "6.13.2",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 92cff996624c4757d5bbace3dfa3f1567ba94143 or 69c676c0ded472713e6d1b3a456b3c4f52f66f0e or be482f1d10da781db9445d2753c1e3f1fd82babf or later.",
      "Upgrade Linux to 0 or 6.12.13 or 6.13.2 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
