CVEvulnerability

CVE-2025-37927

7.8 HIGH Published 2025-05-20 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2025-05-20
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-787

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 configurations

• linux linux kernel (>= 4.7 < 5.4.294) • linux linux kernel (>= 5.5 < 5.10.238) • linux linux kernel (>= 5.11 < 5.15.182) • linux linux kernel (>= 5.16 < 6.1.138) • linux linux kernel (>= 6.2 < 6.6.90) • linux linux kernel (>= 6.7 < 6.12.28) • linux linux kernel (>= 6.13 < 6.14.6) • linux linux kernel 6.15 • debian debian linux 11.0

Related

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References