{"id":"CVE-2025-37927","aliases":["CVE-2025-37927"],"related":[],"kind":"vulnerability","state":"published","title":"iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iommu/amd: Arreglar desbordamiento de búfer potencial en parse_ivrs_acpihid Hay un error de lógica de análisis de cadenas que puede provocar un desbordamiento de los búferes hid o uid. La comparación de ACPIID_LEN con la longitud total de una cadena no tiene en cuenta las longitudes de los búferes hid y uid individuales, por lo que la comprobación es insuficiente en algunos casos. Por ejemplo, si la longitud de la cadena hid es 4 y la longitud de la cadena uid es 260, la longitud de str será igual a ACPIID_LEN + 1, pero la cadena uid desbordará el búfer uid, cuyo tamaño es 256. Lo mismo se aplica a la cadena hid con una longitud de 13 y a la cadena uid con una longitud de 250. Compruebe la longitud de las cadenas hid y uid por separado para evitar el desbordamiento del búfer. Encontrado por el Centro de verificación de Linux (linuxtesting.org) con SVACE.","source":"nvd"}],"published":"2025-05-20T15:21:53.973Z","modified":"2026-06-17T09:15:42.820Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"2b65060c84ee4d8dc64fae6d2728b528e9e832e1","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"466d9da267079a8d3b69fa72dfa3a732e1f6dbb5","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"13d67528e1ae4486e9ab24b70122fab104c73c29","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"10d901a95f8e766e5aa0bb9a983fb41271f64718","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f","status":"affected"},{"type":"git","introduced":"ca3bf5d47cec8b7614bcb2e9132c40081d6d81db","fixed":"8dee308e4c01dea48fc104d37f92d5b58c50b96c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"5.4.294","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.238","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.182","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.138","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.90","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.28","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.6","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.7","fixed":"5.4.294"},{"status":"affected","introduced":"5.5","fixed":"5.10.238"},{"status":"affected","introduced":"5.11","fixed":"5.15.182"},{"status":"affected","introduced":"5.16","fixed":"6.1.138"},{"status":"affected","introduced":"6.2","fixed":"6.6.90"},{"status":"affected","introduced":"6.7","fixed":"6.12.28"},{"status":"affected","introduced":"6.13","fixed":"6.14.6"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2b65060c84ee4d8dc64fae6d2728b528e9e832e1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/466d9da267079a8d3b69fa72dfa3a732e1f6dbb5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13d67528e1ae4486e9ab24b70122fab104c73c29","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10d901a95f8e766e5aa0bb9a983fb41271f64718","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8dee308e4c01dea48fc104d37f92d5b58c50b96c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37927","url":"https://www.cve.org/CVERecord?id=CVE-2025-37927","licence":"CVE Terms of Use","modified":"2026-05-11T21:17:48.029Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37927","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37927","licence":"Public domain","modified":"2026-06-17T09:15:42.820Z"}],"updatedAt":"2026-11-25T22:58:58.291Z","epss":{"score":0.00295,"percentile":0.23865,"date":"2026-12-01T12:00:22.000Z"}}