CVE-2025-37927 iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid

High 7.8 Published Updated

A buffer overflow in the Linux kernel's AMD IOMMU driver allows attackers to potentially execute arbitrary code or escalate privileges via crafted ACPI data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37927?

CVE-2025-37927 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 20 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-787

Which versions are affected by CVE-2025-37927?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37927?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-37927 being exploited?

There is no known exploitation of CVE-2025-37927 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37927, DEBIAN-CVE-2025-37927, GHSA-jrcg-ffmc-qfvv, ROOT-OS-DEBIAN-11-CVE-2025-37927, ROOT-OS-DEBIAN-12-CVE-2025-37927, ROOT-OS-UBUNTU-2204-CVE-2025-37927 and 2 more.

Is CVE-2025-37927 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free