All reports
Low

kernel: iommu/amd: Fix undefined behavior in devid_write debugfs function

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-92505

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel's iommu/amd component, specifically within the devid_write debugfs function. When the for_each_pci_segment() loop fails to find a matching segment, a pointer can reference an invalid memory location. Accessing this invalid memory can lead to undefined behavior, potentially causing system instability or a denial of service.