CVE-2025-37927: iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid
In the Linux kernel, the following vulnerability has been resolved:
iommu/amd: Fix potential buffer overflow in parseivrsacpihid
There is a string parsing logic error which can lead to an overflow of hid or uid buffers. Comparing ACPIIDLEN 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 ACPIIDLEN + 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-37927?
CVE-2025-37927 is classified as a medium severity vulnerability due to its potential to cause buffer overflows.
How do I fix CVE-2025-37927?
To fix CVE-2025-37927, update your Linux kernel to the latest version where the vulnerability has been patched.
What type of vulnerability is CVE-2025-37927?
CVE-2025-37927 is a buffer overflow vulnerability related to string parsing in the Linux kernel.
Which versions of the Linux kernel are affected by CVE-2025-37927?
CVE-2025-37927 affects specific versions of the Linux kernel that employ the iommu/amd functionalities.
What are the potential risks associated with CVE-2025-37927?
The risks of CVE-2025-37927 include possible system crashes or execution of arbitrary code due to the buffer overflow.