CVE-2025-37927
iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid
Check your servers for CVE-2025-37927
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37927 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before 2b65060c84ee4d8dc64fae6d2728b528e9e832e1 affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before 466d9da267079a8d3b69fa72dfa3a732e1f6dbb5 affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before 13d67528e1ae4486e9ab24b70122fab104c73c29 affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before 10d901a95f8e766e5aa0bb9a983fb41271f64718 affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f affected from ca3bf5d47cec8b7614bcb2e9132c40081d6d81db, before 8dee308e4c01dea48fc104d37f92d5b58c50b96c
Other versions: unaffected
|
| Linux |
affected 4.7 unaffected before 4.7 unaffected from 5.4.294 up to and including 5.4.* unaffected from 5.10.238 up to and including 5.10.* unaffected from 5.15.182 up to and including 5.15.* unaffected from 6.1.138 up to and including 6.1.* unaffected from 6.6.90 up to and including 6.6.* unaffected from 6.12.28 up to and including 6.12.* unaffected from 6.14.6 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37927 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37927
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-37927
trivy image --scanners vuln IMAGE | grep CVE-2025-37927
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/2b65060c84ee4d8dc64fae6d2728b528e9e832e1 git.kernel.org
- https://git.kernel.org/stable/c/a65ebfed65fa62797ec1f5f1dcf7adb157a2de1e git.kernel.org
- https://git.kernel.org/stable/c/466d9da267079a8d3b69fa72dfa3a732e1f6dbb5 git.kernel.org
- https://git.kernel.org/stable/c/c3f37faa71f5d26dd2144b3f2b14525ec8f5e41f git.kernel.org
- https://git.kernel.org/stable/c/13d67528e1ae4486e9ab24b70122fab104c73c29 git.kernel.org
- https://git.kernel.org/stable/c/10d901a95f8e766e5aa0bb9a983fb41271f64718 git.kernel.org
- https://git.kernel.org/stable/c/c8bdfc0297965bb13fa439d36ca9c4f7c8447f0f git.kernel.org
- https://git.kernel.org/stable/c/8dee308e4c01dea48fc104d37f92d5b58c50b96c git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html lists.debian.org
Source: the record CVE-2025-37927 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse