CVE-2026-92505

iommu/amd: Fix undefined behavior in devid_write debugfs function

Published Sep 17, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

iommu/amd: Fix undefined behavior in devid_write debugfs function

When for_each_pci_segment() loop completes without finding a matching
segment, the pci_seg pointer is not NULL but points to an invalid memory
location (the list head). Accessing pci_seg->id after the loop causes
undefined behavior.

Fix this by handling the successful case inside the loop and returning
-EINVAL after the loop if no matching segment is found.

Analysis

AI-generated

Technical impact

In the Linux IOMMU AMD driver, a loop that scans PCI segments can finish without finding a match, leaving a pointer that is not null but points to a list head. The subsequent dereference of this pointer accesses an invalid memory location, causing undefined behavior. This can lead to a kernel crash or accidental memory corruption, potentially resulting in a denial of service. The flaw stems from improper pointer handling and is classified under CWE‑476.

Affected Systems

The vulnerability affects all releases of the Linux kernel that include the AMD IOMMU (iommu/amd) driver before the patch commit. No vendor‑specific version numbers are supplied, so any kernel build containing the exposed code prior to the update is potentially vulnerable.

Risk and Exploitability

The EPSS score is below 1 % and the vulnerability is not listed in CISA KEV, indicating a very low likelihood of exploitation. No CVSS score is provided, but the issue requires a local user to write to an AMD IOMMU debugfs entry, a capability typically limited to root or privileged users. The primary attack vector is therefore a local privileged user, and the impact is limited to system stability rather than remote compromise. The risk is considered low to moderate, with potential for denial of service if an attacker can control the debugfs writes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch that fixes the invalid pointer dereference in the AMD IOMMU debugfs function
  • If a kernel upgrade cannot be performed immediately, restrict write access to the AMD IOMMU debugfs entries to root users only or mount the debugfs file system with the appropriate permissions
  • Validate that the kernel configuration does not expose the problematic debugfs entries in production environments and re‑review IOMMU settings to minimize exposure

Generated by OpenCVE AI on September 19, 2026 at 09:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix undefined behavior in devid_write debugfs function When for_each_pci_segment() loop completes without finding a matching segment, the pci_seg pointer is not NULL but points to an invalid memory location (the list head). Accessing pci_seg->id after the loop causes undefined behavior. Fix this by handling the successful case inside the loop and returning -EINVAL after the loop if no matching segment is found.
Title iommu/amd: Fix undefined behavior in devid_write debugfs function
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:04 AM
Reserved
Sep 16, 2026, 12:21 PM
Status
Received
Published
Sep 17, 2026, 5:17 PM
Modified
Oct 19, 2026, 10:16 AM