Bug 2536318 (CVE-2026-92505) - CVE-2026-92505 kernel: iommu/amd: Fix undefined behavior in devid_write debugfs function
Summary: CVE-2026-92505 kernel: iommu/amd: Fix undefined behavior in devid_write debug...
Keywords:
Status: NEW
Alias: CVE-2026-92505
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-17 17:20 UTC by OSIDB Bzimport
Modified: 2026-10-20 11:21 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-17 17:20:53 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.