CVE-2025-37927
JSON

7.8high

iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid There is a string parsing logic error which can lead to an overflow of hid or uid buffers. Comparing ACPIID_LEN against a total string length doesn't take into account the lengths of individual hid and uid buffers so the check is insufficient in some cases. For example if the length of hid string is 4 and the length of the uid string is 260, the length of str will be equal to ACPIID_LEN + 1 but uid string will overflow uid buffer which size is 256. The same applies to the hid string with length 13 and uid string with length 250. Check the length of hid and uid strings separately to prevent buffer overflow. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Affected

Product or packageVersionsReported by
Linux Linuxfrom ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before 2b65060c84ee4d8dc64fae6d2728b528e9e832e1, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before 466d9da267079a8d3b69fa72dfa3a732e1f6dbb5, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before 13d67528e1ae4486e9ab24b70122fab104c73c29, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before 10d901a95f8e766e5aa0bb9a983fb41271f64718, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f, from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db before 8dee308e4c01dea48fc104d37f92d5b58c50b96c and 1 more
Not affected: before 4.7, from 5.4.294 up to 5.4.*, from 5.10.238 up to 5.10.*, from 5.15.182 up to 5.15.*, from 6.1.138 up to 6.1.*, from 6.6.90 up to 6.6.*
CVE List
linux linux_kernelfrom 4.7 before 5.4.294, from 5.5 before 5.10.238, from 5.11 before 5.15.182, from 5.16 before 6.1.138, from 6.2 before 6.6.90, from 6.7 before 6.12.28, from 6.13 before 6.14.6, 6.15NVD
debian debian_linux11.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid There is a string parsing logic error which can lead to an overflow of hid or uid buffers. Comparing ACPIID_LEN against a total string length doesn't take into account the lengths of individual hid and uid buffers so the check is insufficient in some cases. For example if the length of hid string is 4 and the length of the uid string is 260, the length of str will be equal to ACPIID_LEN + 1 but uid string will overflow uid buffer which size is 256. The same applies to the hid string with length 13 and uid string with length 250. Check the length of hid and uid strings separately to prevent buffer overflow. Found by Linux Verification Center (linuxtesting.org) with SVACE.

NVD (es)

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.

References

https://git.kernel.org/stable/c/2b65060c84ee4d8dc64fae6d2728b528e9e832e1patch
https://git.kernel.org/stable/c/a65ebfed65fa62797ec1f5f1dcf7adb157a2de1epatch
https://git.kernel.org/stable/c/466d9da267079a8d3b69fa72dfa3a732e1f6dbb5patch
https://git.kernel.org/stable/c/c3f37faa71f5d26dd2144b3f2b14525ec8f5e41fpatch
https://git.kernel.org/stable/c/13d67528e1ae4486e9ab24b70122fab104c73c29patch
https://git.kernel.org/stable/c/10d901a95f8e766e5aa0bb9a983fb41271f64718patch
https://git.kernel.org/stable/c/c8bdfc0297965bb13fa439d36ca9c4f7c8447f0fpatch
https://git.kernel.org/stable/c/8dee308e4c01dea48fc104d37f92d5b58c50b96cpatch
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/08/msg00010.htmlmailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-37927 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-37927 changed 2026-06-17Public domain