<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 21:35:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53778 — accel/qaic: Clean up integer overflow checking in map_user_pages()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-53778</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;accel/qaic: Clean up integer overflow checking in map_user_pages()&lt;/p&gt;
&lt;p&gt;The encode_dma() function has some validation on in_trans-&amp;gt;size but it
would be more clear to move those checks to find_and_map_user_pages().&lt;/p&gt;
&lt;p&gt;The encode_dma() had two checks:&lt;/p&gt;
&lt;p&gt;if (in_trans-&amp;gt;addr + in_trans-&amp;gt;size &amp;lt; in_trans-&amp;gt;addr || !in_trans-&amp;gt;size)
		return -EINVAL;&lt;/p&gt;
&lt;p&gt;The in_trans-&amp;gt;addr variable is the starting address.  The in_trans-&amp;gt;size
variable is the total size of the transfer.  The transfer can occur in
parts and the resources-&amp;gt;xferred_dma_size tracks how many bytes we have
already transferred.&lt;/p&gt;
&lt;p&gt;This patch introduces a new variable &amp;#34;remaining&amp;#34; which represents the
amount we want to transfer (in_trans-&amp;gt;size) minus the amount we have
already transferred (resources-&amp;gt;xferred_dma_size).&lt;/p&gt;
&lt;p&gt;I have modified the check for if in_trans-&amp;gt;size is zero to instead check
if in_trans-&amp;gt;size is less than resources-&amp;gt;xferred_dma_size.  If we have
already transferred more bytes than in_trans-&amp;gt;size then there are negative
bytes remaining which doesn&amp;#39;t make sense.  If there are zero bytes
remaining to be copied, just return success.&lt;/p&gt;
&lt;p&gt;The check in encode_dma() checked that &amp;#34;addr + size&amp;#34; could not overflow
and barring a driver bug that should work, but it&amp;#39;s easier to check if
we do this in parts.  First check that &amp;#34;in_trans-&amp;gt;addr +
resources-&amp;gt;xferred_dma_size&amp;#34; is safe.  Then check that &amp;#34;xfer_start_addr +
remaining&amp;#34; is safe.&lt;/p&gt;
&lt;p&gt;My final concern was that we are de…&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;accel/qaic: Clean up integer overflow checking in map_user_pages()&lt;/p&gt;
&lt;p&gt;The encode_dma() function has some validation on in_trans-&amp;gt;size but it
would be more clear to move those checks to find_and_map_user_pages().&lt;/p&gt;
&lt;p&gt;The encode_dma() had two checks:&lt;/p&gt;
&lt;p&gt;if (in_trans-&amp;gt;addr + in_trans-&amp;gt;size &amp;lt; in_trans-&amp;gt;addr || !in_trans-&amp;gt;size)
		return -EINVAL;&lt;/p&gt;
&lt;p&gt;The in_trans-&amp;gt;addr variable is the starting address.  The in_trans-&amp;gt;size
variable is the total size of the transfer.  The transfer can occur in
parts and the resources-&amp;gt;xferred_dma_size tracks how many bytes we have
already transferred.&lt;/p&gt;
&lt;p&gt;This patch introduces a new variable &amp;#34;remaining&amp;#34; which represents the
amount we want to transfer (in_trans-&amp;gt;size) minus the amount we have
already transferred (resources-&amp;gt;xferred_dma_size).&lt;/p&gt;
&lt;p&gt;I have modified the check for if in_trans-&amp;gt;size is zero to instead check
if in_trans-&amp;gt;size is less than resources-&amp;gt;xferred_dma_size.  If we have
already transferred more bytes than in_trans-&amp;gt;size then there are negative
bytes remaining which doesn&amp;#39;t make sense.  If there are zero bytes
remaining to be copied, just return success.&lt;/p&gt;
&lt;p&gt;The check in encode_dma() checked that &amp;#34;addr + size&amp;#34; could not overflow
and barring a driver bug that should work, but it&amp;#39;s easier to check if
we do this in parts.  First check that &amp;#34;in_trans-&amp;gt;addr +
resources-&amp;gt;xferred_dma_size&amp;#34; is safe.  Then check that &amp;#34;xfer_start_addr +
remaining&amp;#34; is safe.&lt;/p&gt;
&lt;p&gt;My final concern was that we are de…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-53778</guid>
    </item>
  </channel>
</rss>
