FKIE_CVE-2026-138968

Vulnerability from fkie_nvd - Published: 2026-11-30 14:17 - Updated: 2026-11-30 14:17
Severity
Summary
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.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/intel/iommu.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "46bfb435097bd730f1b687275a94ab0c13a65593",
              "status": "affected",
              "version": "f701c9f36bcb7940f9c53413b508de8c9cb0321c",
              "versionType": "git"
            },
            {
              "lessThan": "e8168221d3c7d05b6533a36d9395aa27c578cba8",
              "status": "affected",
              "version": "f701c9f36bcb7940f9c53413b508de8c9cb0321c",
              "versionType": "git"
            },
            {
              "lessThan": "675c26291463079931a076c06be111759574b3e0",
              "status": "affected",
              "version": "f701c9f36bcb7940f9c53413b508de8c9cb0321c",
              "versionType": "git"
            },
            {
              "lessThan": "ddea230c9fc28d1f2090ceeab3d66ce2bea658e9",
              "status": "affected",
              "version": "f701c9f36bcb7940f9c53413b508de8c9cb0321c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/intel/iommu.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()\n\nCallers request a full Device-TLB flush by passing MAX_AGAW_PFN_WIDTH\n(64 - VTD_PAGE_SHIFT == 52) as @size_order.  Two expressions in\nqi_desc_dev_iotlb_pasid() are not prepared for a value that large:\n\n  unsigned long mask = 1UL \u003c\u003c (VTD_PAGE_SHIFT + size_order - 1);\n  ...\n  if (!IS_ALIGNED(addr, VTD_PAGE_SIZE \u003c\u003c size_order))\n\nThe second evaluates to 1UL \u003c\u003c 64, which is undefined on all\narchitectures.  On x86_64 the shift count masks to zero, IS_ALIGNED(addr,\n1) is trivially true, and the alignment sanity check silently degrades\ninto a no-op.\n\nThe first evaluates to 1UL \u003c\u003c 63.  That is well defined on 64-bit builds,\nwhere unsigned long is 64 bits wide, but is undefined on 32-bit ones.  In\npractice x86 masks the shift count to five bits, so the expression yields\n1UL \u003c\u003c 31 and ~mask becomes 0x7fffffff.  That value is zero-extended when\napplied to the 64-bit descriptor, so\n\n  desc-\u003eqw1 \u0026= ~mask;\n\nclears qw1[63:32] as well as bit 31, collapsing the ADDR field that had\njust been filled with ones.  Reaching that requires a scalable-mode PASID\nconfiguration on 32-bit x86, which is not a realistic deployment, but the\nconstruct is wrong regardless.\n\nCompute the mask with BIT_ULL() so that it is 64-bit on every\narchitecture, and skip the alignment check for a full flush, where it is\nboth meaningless and the source of the out-of-range shift.\n\nNote that @size_order must not be clamped below 64 - VTD_PAGE_SHIFT.  With\nS set, hardware derives the invalidation range from the least significant\nzero bit N of ADDR and matches bits [63:N+1] of the incoming address.  For\nsize_order 52 the descriptor sets ADDR[63:12] and clears bit 63, making\nN = 63 and the comparison range empty, so everything is invalidated.\nReducing @size_order to 51 would instead leave N = 62 and cause hardware\nto compare address bit 63; since callers pass an address of 0, only the\nlower half of the address space would be invalidated.  Bound @size_order\nat 64 - VTD_PAGE_SHIFT so that a bogus caller cannot reintroduce an\nout-of-range shift, without altering the full-flush encoding.\n\nThe non-PASID variant qi_desc_dev_iotlb() already uses 1ULL and is\nunaffected."
    }
  ],
  "id": "CVE-2026-138968",
  "lastModified": "2026-11-30T14:17:58.587",
  "metrics": {},
  "published": "2026-11-30T14:17:58.587",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/46bfb435097bd730f1b687275a94ab0c13a65593"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/675c26291463079931a076c06be111759574b3e0"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/ddea230c9fc28d1f2090ceeab3d66ce2bea658e9"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e8168221d3c7d05b6533a36d9395aa27c578cba8"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.