CVE-2026-139602

iommu/vt-d: Handle DID reservation errors when copying context tables

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

iommu/vt-d: Handle DID reservation errors when copying context tables

When kdump reuses old translation tables, all old domain IDs (DIDs) must
be reserved in the new kernel before new domains are created. Today
copy_context_table() ignores ida_alloc_range() return values, so a real
-ENOMEM can be missed and an ID may stay unreserved.

That can allow DID reuse while stale hardware cache entries still exist,
risking domain aliasing.

Fix this by moving DID reservation into a helper that:

- treats duplicate reservations (-ENOSPC) as expected success,
- skips out-of-range IDs as success,
- propagates real allocation failures (like -ENOMEM), and
- normalize successful return values.

On failure, unwind as in existing copy-allocation failure paths.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Linux kernel’s iommu/vt‑d code ignoring errors returned by ida_alloc_range() when copying context tables. When kdump reuses old translation tables, all previous domain IDs must be reserved in the new kernel, but the failure to detect a real –ENOMEM can allow an identifier to remain unreserved. This oversight lets an attacker reuse a domain ID that still has stale hardware cache entries pointing to another domain, potentially creating a domain alias. The result is that a domain can unintentionally access, modify, or crash the memory of another domain, compromising confidentiality, integrity, and availability. The weakness is a classic case of incorrect resource management and can be mapped to CWE‑682.

Affected Systems

All Linux kernel builds affected by the bug prior to the commit that introduces the new helper for DID reservation. The references linked in the advisory point to kernel commits that implement the fix, indicating that any running kernel that has not yet integrated those changes is vulnerable.

Risk and Exploitability

There is no EPSS score or KEV listing for this issue, suggesting that public exploitation is not currently catalogued. However, the severity can be considered high because domain aliasing can lead to unauthorized access to sensitive memory within virtualized environments. Exploitation would likely require local or kernel‑level access to trigger the faulty copy_context_table() path, especially during kdump operations that reuse old translation tables. The attack vector is inferred to be local or via privileged operations that invoke kdump, so systems that run kdump with old translation tables should prioritize patching or mitigations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing the DID reservation logic
  • If an immediate kernel upgrade is not feasible, disable or prevent the use of kdump to reuse old translation tables until the issue is patched
  • Monitor kernel logs for repeated –ENOMEM or domain ID allocation errors that could indicate the presence of stale IDs

Generated by OpenCVE AI on December 1, 2026 at 00:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-682
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Handle DID reservation errors when copying context tables When kdump reuses old translation tables, all old domain IDs (DIDs) must be reserved in the new kernel before new domains are created. Today copy_context_table() ignores ida_alloc_range() return values, so a real -ENOMEM can be missed and an ID may stay unreserved. That can allow DID reuse while stale hardware cache entries still exist, risking domain aliasing. Fix this by moving DID reservation into a helper that: - treats duplicate reservations (-ENOSPC) as expected success, - skips out-of-range IDs as success, - propagates real allocation failures (like -ENOMEM), and - normalize successful return values. On failure, unwind as in existing copy-allocation failure paths.
Title iommu/vt-d: Handle DID reservation errors when copying context tables
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM