{
  "id": "CVE-2025-37927",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37927",
  "published_at": "2025-05-20T15:21:53.973Z",
  "title": "iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid",
  "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\niommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid\n\nThere is a string parsing logic error which can lead to an overflow of hid\nor uid buffers. Comparing ACPIID_LEN against a total string length doesn't\ntake into account the lengths of individual hid and uid buffers so the\ncheck is insufficient in some cases. For example if the length of hid\nstring is 4 and the length of the uid string is 260, the length of str\nwill be equal to ACPIID_LEN + 1 but uid string will overflow uid buffer\nwhich size is 256.\n\nThe same applies to the hid string with length 13 and uid string with\nlength 250.\n\nCheck the length of hid and uid strings separately to prevent\nbuffer overflow.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c 2b65060c84ee4d8dc64fae6d2728b528e9e832e1",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c 466d9da267079a8d3b69fa72dfa3a732e1f6dbb5",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c 13d67528e1ae4486e9ab24b70122fab104c73c29",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c 10d901a95f8e766e5aa0bb9a983fb41271f64718",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f",
          "\u003e= ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, \u003c 8dee308e4c01dea48fc104d37f92d5b58c50b96c"
        ],
        "fixed_in": [
          "2b65060c84ee4d8dc64fae6d2728b528e9e832e1",
          "a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e",
          "466d9da267079a8d3b69fa72dfa3a732e1f6dbb5",
          "c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f",
          "13d67528e1ae4486e9ab24b70122fab104c73c29",
          "10d901a95f8e766e5aa0bb9a983fb41271f64718",
          "c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f",
          "8dee308e4c01dea48fc104d37f92d5b58c50b96c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.7"
        ],
        "fixed_in": [
          "0",
          "5.4.294",
          "5.10.238",
          "5.15.182",
          "6.1.138",
          "6.6.90",
          "6.12.28",
          "6.14.6",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 2b65060c84ee4d8dc64fae6d2728b528e9e832e1 or a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e or 466d9da267079a8d3b69fa72dfa3a732e1f6dbb5 or c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f or 13d67528e1ae4486e9ab24b70122fab104c73c29 or 10d901a95f8e766e5aa0bb9a983fb41271f64718 or c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f or 8dee308e4c01dea48fc104d37f92d5b58c50b96c or later.",
      "Upgrade Linux to 0 or 5.4.294 or 5.10.238 or 5.15.182 or 6.1.138 or 6.6.90 or 6.12.28 or 6.14.6 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
