CVE-2026-92505: iommu/amd: Fix undefined behavior in devid_write debugfs function

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

iommu/amd: Fix undefined behavior in devidwrite debugfs function

When foreachpcisegment() loop completes without finding a matching segment, the pciseg pointer is not NULL but points to an invalid memory location (the list head). Accessing pciseg->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.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:10 PM
Data Sourced
via MITRE·04:10 PM
Description

Frequently Asked Questions

1

What access does an attacker need to trigger this issue?

The vulnerable code is in the devid_write debugfs function, so triggering it requires the ability to write to the relevant debugfs interface. The provided information does not identify the required privilege level or debugfs file permissions.

2

When does the undefined behavior occur?

It occurs when the PCI-segment iteration finishes without finding a segment matching the requested value. The code then accesses pci_seg->id even though pci_seg points to the list head rather than a valid segment.

3

What behavior does the fix introduce for an unknown segment?

The corrected code handles a matching segment within the iteration loop. If no matching segment is found, it returns -EINVAL instead of accessing an invalid pointer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203