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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **Published:** 2026-09-25T10:23:29.929Z
- **Modified:** 2026-10-19T10:17:51.570Z

## Who should check

- Anyone running Linux \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< 80c231f5577229d1e90a1e312b3095f9502f8625; \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< fa5c0827f0b7bac6d0a188f10118151769ae68fd
- Anyone running Linux 7.0

## Description

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

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

amd\_iommu\_pdom\_id\_alloc() returns an int: a domain ID on success, or the
negative errno from ida\_alloc\_range() when the ID space is exhausted or
memory is short.  amd\_iommu\_alloc\_domain\_nested() stores that return value
in gdom\_info-\>hdom\_id, which is a u32, and only then tests it:

	gdom\_info-\>hdom\_id = amd\_iommu\_pdom\_id\_alloc();
	if (gdom\_info-\>hdom\_id \<= 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 amd\_iommu\_pdom\_id\_alloc()
callers already do.

## Affected and fixed versions

- Linux: \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< 80c231f5577229d1e90a1e312b3095f9502f8625; \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< fa5c0827f0b7bac6d0a188f10118151769ae68fd (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98002. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98002.md
Affected: Linux >= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, < 80c231f5577229d1e90a1e312b3095f9502f8625; >= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, < fa5c0827f0b7bac6d0a188f10118151769ae68fd; Linux 7.0
Fixed in: Linux 80c231f5577229d1e90a1e312b3095f9502f8625

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98002 being exploited?

There is no confirmed exploitation: CVE-2026-98002 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98002?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-98002?

Linux \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< 80c231f5577229d1e90a1e312b3095f9502f8625; \>= 757d2b1fdf5b7d6eead5963a49b5780617987ab8, \< fa5c0827f0b7bac6d0a188f10118151769ae68fd; Linux 7.0.

### Is there a fix for CVE-2026-98002?

Yes. Fixed in Linux 80c231f5577229d1e90a1e312b3095f9502f8625. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98002?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/80c231f5577229d1e90a1e312b3095f9502f8625>
- other: <https://git.kernel.org/stable/c/fa5c0827f0b7bac6d0a188f10118151769ae68fd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98002>

HTML: <https://flawdb.com/CVE-2026-98002> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98002>
