<?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>Mon, 28 Sep 2026 19:46:15 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49320 — dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type</title>
      <link>https://db.gcve.eu/vuln/cve-2022-49320</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;dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type&lt;/p&gt;
&lt;p&gt;In zynqmp_dma_alloc/free_chan_resources functions there is a
potential overflow in the below expressions.&lt;/p&gt;
&lt;p&gt;dma_alloc_coherent(chan-&amp;gt;dev, (2 * chan-&amp;gt;desc_size *
		   ZYNQMP_DMA_NUM_DESCS),
		   &amp;amp;chan-&amp;gt;desc_pool_p, GFP_KERNEL);&lt;/p&gt;
&lt;p&gt;dma_free_coherent(chan-&amp;gt;dev,(2 * ZYNQMP_DMA_DESC_SIZE(chan) *
                 ZYNQMP_DMA_NUM_DESCS),
                chan-&amp;gt;desc_pool_v, chan-&amp;gt;desc_pool_p);&lt;/p&gt;
&lt;p&gt;The arguments desc_size and ZYNQMP_DMA_NUM_DESCS were 32 bit. Though
this overflow condition is not observed but it is a potential problem
in the case of 32-bit multiplication. Hence fix it by changing the
desc_size data type to size_t.&lt;/p&gt;
&lt;p&gt;In addition to coverity fix it also reuse ZYNQMP_DMA_DESC_SIZE macro in
dma_alloc_coherent API argument.&lt;/p&gt;
&lt;p&gt;Addresses-Coverity: Event overflow_before_widen.&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;dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type&lt;/p&gt;
&lt;p&gt;In zynqmp_dma_alloc/free_chan_resources functions there is a
potential overflow in the below expressions.&lt;/p&gt;
&lt;p&gt;dma_alloc_coherent(chan-&amp;gt;dev, (2 * chan-&amp;gt;desc_size *
		   ZYNQMP_DMA_NUM_DESCS),
		   &amp;amp;chan-&amp;gt;desc_pool_p, GFP_KERNEL);&lt;/p&gt;
&lt;p&gt;dma_free_coherent(chan-&amp;gt;dev,(2 * ZYNQMP_DMA_DESC_SIZE(chan) *
                 ZYNQMP_DMA_NUM_DESCS),
                chan-&amp;gt;desc_pool_v, chan-&amp;gt;desc_pool_p);&lt;/p&gt;
&lt;p&gt;The arguments desc_size and ZYNQMP_DMA_NUM_DESCS were 32 bit. Though
this overflow condition is not observed but it is a potential problem
in the case of 32-bit multiplication. Hence fix it by changing the
desc_size data type to size_t.&lt;/p&gt;
&lt;p&gt;In addition to coverity fix it also reuse ZYNQMP_DMA_DESC_SIZE macro in
dma_alloc_coherent API argument.&lt;/p&gt;
&lt;p&gt;Addresses-Coverity: Event overflow_before_widen.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-49320</guid>
    </item>
  </channel>
</rss>
