CVE-2025-37927

iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid

State
Published
Severity
Not scored
Published
May 20, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before 2b65060c84ee4d8dc64fae6d2728b528e9e832e1Affected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before a65ebfed65fa62797ec1f5f1dcf7adb157a2de1eAffected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before 466d9da267079a8d3b69fa72dfa3a732e1f6dbb5Affected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before c3f37faa71f5d26dd2144b3f2b14525ec8f5e41fAffected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before 13d67528e1ae4486e9ab24b70122fab104c73c29Affected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before 10d901a95f8e766e5aa0bb9a983fb41271f64718Affected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before c8bdfc0297965bb13fa439d36ca9c4f7c8447f0fAffected
  • ca3bf5d47cec8b7614bcb2e9132c40081d6d81db to before 8dee308e4c01dea48fc104d37f92d5b58c50b96cAffected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 5.4.294 through 5.4.*Not affected
  • 5.10.238 through 5.10.*Not affected
  • 5.15.182 through 5.15.*Not affected
  • 6.1.138 through 6.1.*Not affected
  • 6.6.90 through 6.6.*Not affected
  • 6.12.28 through 6.12.*Not affected
  • 6.14.6 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.