Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138968

published

iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()

Published
30 Nov 2026, 13:26:39 UTC
Updated
30 Nov 2026, 13:26:39 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxf701c9f36bcb7940f9c53413b508de8c9cb0321c to < 46bfb435097bd730f1b687275a94ab0c13a65593 · f701c9f36bcb7940f9c53413b508de8c9cb0321c to < e8168221d3c7d05b6533a36d9395aa27c578cba8 · f701c9f36bcb7940f9c53413b508de8c9cb0321c to < 675c26291463079931a076c06be111759574b3e0 · f701c9f36bcb7940f9c53413b508de8c9cb0321c to < ddea230c9fc28d1f2090ceeab3d66ce2bea658e9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid() Callers request a full Device-TLB flush by passing MAX_AGAW_PFN_WIDTH (64 - VTD_PAGE_SHIFT == 52) as @size_order. Two expressions in qi_desc_dev_iotlb_pasid() are not prepared for a value that large: unsigned long mask = 1UL << (VTD_PAGE_SHIFT + size_order - 1); ... if (!IS_ALIGNED(addr, VTD_PAGE_SIZE << size_order)) The second evaluates to 1UL << 64, which is undefined on all architectures. On x86_64 the shift count masks to zero, IS_ALIGNED(addr, 1) is trivially true, and the alignment sanity check silently degrades into a no-op. The first evaluates to 1UL << 63. That is well defined on 64-bit builds, where unsigned long is 64 bits wide, but is undefined on 32-bit ones. In practice x86 masks the shift count to five bits, so the expression yields 1UL << 31 and ~mask becomes 0x7fffffff. That value is zero-extended when applied to the 64-bit descriptor, so desc->qw1 &= ~mask; clears qw1[63:32] as well as bit 31, collapsing the ADDR field that had just been filled with ones. Reaching that requires a scalable-mode PASID configuration on 32-bit x86, which is not a realistic deployment, but the construct is wrong regardless. Compute the mask with BIT_ULL() so that it is 64-bit on every architecture, and skip the alignment check for a full flush, where it is both meaningless and the source of the out-of-range shift. Note that @size_order must not be clamped below 64 - VTD_PAGE_SHIFT. With S set, hardware derives the invalidation range from the least significant zero bit N of ADDR and matches bits [63:N+1] of the incoming address. For size_order 52 the descriptor sets ADDR[63:12] and clears bit 63, making N = 63 and the comparison range empty, so everything is invalidated. Reducing @size_order to 51 would instead leave N = 62 and cause hardware to compare address bit 63; since callers pass an address of 0, only the lower half of the address space would be invalidated. Bound @size_order at 64 - VTD_PAGE_SHIFT so that a bogus caller cannot reintroduce an out-of-range shift, without altering the full-flush encoding. The non-PASID variant qi_desc_dev_iotlb() already uses 1ULL and is unaffected.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux f701c9f36bcb7940f9c53413b508de8c9cb0321c to < 46bfb435097bd730f1b687275a94ab0c13a65593 (affected · git)f701c9f36bcb7940f9c53413b508de8c9cb0321c to < e8168221d3c7d05b6533a36d9395aa27c578cba8 (affected · git)f701c9f36bcb7940f9c53413b508de8c9cb0321c to < 675c26291463079931a076c06be111759574b3e0 (affected · git)f701c9f36bcb7940f9c53413b508de8c9cb0321c to < ddea230c9fc28d1f2090ceeab3d66ce2bea658e9 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()

Provenance

Schema
5.2
Searchable
yes
Content hash
ac20df1d303c7df7dcc2d9ca2eac97003f0cfa01013e0982f9143a9b907bf643
Ingested
30 Nov 2026, 13:36:39 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected