CVE-2026-98002: iommu/amd: Fix ineffective error check in nested domain allocation

Published Sep 25, 2026
·
Updated

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

iommu/amd: Fix ineffective error check in nested domain allocation

amdiommupdomidalloc() returns an int: a domain ID on success, or the negative errno from idaallocrange() when the ID space is exhausted or memory is short. amdiommuallocdomainnested() stores that return value in gdominfo->hdomid, which is a u32, and only then tests it:

gdominfo->hdomid = amdiommupdomidalloc(); if (gdominfo->hdomid <= 0) {

The assignment discards the sign, so -ENOSPC becomes 0xffffffe4 and the test never fires. The nested domain is then set up with a host domain ID that was never allocated, instead of the allocation failing with -ENOSPC.

Keep the value in an int, test it there, and store it only once it is known to be valid, which is what the other amdiommupdomidalloc() callers already do.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:17 AM
DescriptionSeverity

Frequently Asked Questions

1

When can this issue be triggered?

It is triggered when nested-domain allocation calls amd_iommu_pdom_id_alloc() and that allocation fails, such as when the domain ID space is exhausted or memory is unavailable.

2

What is the effect of the failed allocation being mishandled?

A negative allocation error is converted to an unsigned value and accepted as a host domain ID. The nested domain can then be set up with an ID that was never allocated instead of failing with the underlying error.

3

How can administrators tell whether systems are at risk of encountering it?

Systems that use AMD IOMMU nested-domain allocation can encounter the issue when host domain IDs are exhausted or memory is short. The provided information does not identify a configuration-independent indicator or runtime detection method.

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