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.
Published: 2026-09-17
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Kernel crash or unintended memory access due to dereferencing an invalid pointer
Action: Assess Impact
AI Analysis

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.

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

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

No advisories yet.

History

Sat, 19 Sep 2026 10:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Thu, 17 Sep 2026 16:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-17T16:10:17.389Z

Reserved: 2026-09-16T12:21:13.872Z

Link: CVE-2026-92505

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-17T17:17:53.077

Modified: 2026-09-17T17:17:53.077

Link: CVE-2026-92505

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-19T11:15:13Z

Weaknesses