<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:33:29 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138968 — iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138968</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;unsigned long mask = 1UL &amp;lt;&amp;lt; (VTD_PAGE_SHIFT + size_order - 1);
  ...
  if (!IS_ALIGNED(addr, VTD_PAGE_SIZE &amp;lt;&amp;lt; size_order))&lt;/p&gt;
&lt;p&gt;The second evaluates to 1UL &amp;lt;&amp;lt; 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.&lt;/p&gt;
&lt;p&gt;The first evaluates to 1UL &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; 31 and ~mask becomes 0x7fffffff.  That value is zero-extended when
applied to the 64-bit descriptor, so&lt;/p&gt;
&lt;p&gt;desc-&amp;gt;qw1 &amp;amp;= ~mask;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Note that…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iommu/vt-d: Avoid out-of-range shift in qi_desc_dev_iotlb_pasid()&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;unsigned long mask = 1UL &amp;lt;&amp;lt; (VTD_PAGE_SHIFT + size_order - 1);
  ...
  if (!IS_ALIGNED(addr, VTD_PAGE_SIZE &amp;lt;&amp;lt; size_order))&lt;/p&gt;
&lt;p&gt;The second evaluates to 1UL &amp;lt;&amp;lt; 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.&lt;/p&gt;
&lt;p&gt;The first evaluates to 1UL &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; 31 and ~mask becomes 0x7fffffff.  That value is zero-extended when
applied to the 64-bit descriptor, so&lt;/p&gt;
&lt;p&gt;desc-&amp;gt;qw1 &amp;amp;= ~mask;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Note that…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138968</guid>
    </item>
  </channel>
</rss>
