{
  "id": "CVE-2025-21724",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21724",
  "published_at": "2025-02-27T02:07:31.63Z",
  "title": "iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()",
  "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\niommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()\n\nResolve a UBSAN shift-out-of-bounds issue in iova_bitmap_offset_to_index()\nwhere shifting the constant \"1\" (of type int) by bitmap-\u003emapped.pgshift\n(an unsigned long value) could result in undefined behavior.\n\nThe constant \"1\" defaults to a 32-bit \"int\", and when \"pgshift\" exceeds\n31 (e.g., pgshift = 63) the shift operation overflows, as the result\ncannot be represented in a 32-bit type.\n\nTo resolve this, the constant is updated to \"1UL\", promoting it to an\nunsigned long type to match the operand's type.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \u003c 44d9c94b7a3f29a3e07c4753603a35e9b28842a3",
          "\u003e= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \u003c 38ac76fc06bc6826a3e4b12a98efbe98432380a9",
          "\u003e= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \u003c d5d33f01b86af44b23eea61ee309e4ef22c0cdfe",
          "\u003e= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \u003c b1f8453b8ff1ab79a03820ef608256c499769cb6",
          "\u003e= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \u003c e24c1551059268b37f6f40639883eafb281b8b9c"
        ],
        "fixed_in": [
          "44d9c94b7a3f29a3e07c4753603a35e9b28842a3",
          "38ac76fc06bc6826a3e4b12a98efbe98432380a9",
          "d5d33f01b86af44b23eea61ee309e4ef22c0cdfe",
          "b1f8453b8ff1ab79a03820ef608256c499769cb6",
          "e24c1551059268b37f6f40639883eafb281b8b9c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.1"
        ],
        "fixed_in": [
          "0",
          "6.1.129",
          "6.6.76",
          "6.12.13",
          "6.13.2",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 44d9c94b7a3f29a3e07c4753603a35e9b28842a3 or 38ac76fc06bc6826a3e4b12a98efbe98432380a9 or d5d33f01b86af44b23eea61ee309e4ef22c0cdfe or b1f8453b8ff1ab79a03820ef608256c499769cb6 or e24c1551059268b37f6f40639883eafb281b8b9c or later.",
      "Upgrade Linux to 0 or 6.1.129 or 6.6.76 or 6.12.13 or 6.13.2 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
