<?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>Tue, 29 Sep 2026 16:08:39 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50058 — vdpa_sim_blk: set number of address spaces and virtqueue groups</title>
      <link>https://db.gcve.eu/vuln/cve-2022-50058</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;vdpa_sim_blk: set number of address spaces and virtqueue groups&lt;/p&gt;
&lt;p&gt;Commit bda324fd037a (&amp;#34;vdpasim: control virtqueue support&amp;#34;) added two
new fields (nas, ngroups) to vdpasim_dev_attr, but we forgot to
initialize them for vdpa_sim_blk.&lt;/p&gt;
&lt;p&gt;When creating a new vdpa_sim_blk device this causes the kernel
to panic in this way:
    $ vdpa dev add mgmtdev vdpasim_blk name blk0
    BUG: kernel NULL pointer dereference, address: 0000000000000030
    ...
    RIP: 0010:vhost_iotlb_add_range_ctx+0x41/0x220 [vhost_iotlb]
    ...
    Call Trace:
     &amp;lt;TASK&amp;gt;
     vhost_iotlb_add_range+0x11/0x800 [vhost_iotlb]
     vdpasim_map_range+0x91/0xd0 [vdpa_sim]
     vdpasim_alloc_coherent+0x56/0x90 [vdpa_sim]
     ...&lt;/p&gt;
&lt;p&gt;This happens because vdpasim-&amp;gt;iommu[0] is not initialized when
dev_attr.nas is 0.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s fix this issue by initializing both (nas, ngroups) to 1 for
vdpa_sim_blk.&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;vdpa_sim_blk: set number of address spaces and virtqueue groups&lt;/p&gt;
&lt;p&gt;Commit bda324fd037a (&amp;#34;vdpasim: control virtqueue support&amp;#34;) added two
new fields (nas, ngroups) to vdpasim_dev_attr, but we forgot to
initialize them for vdpa_sim_blk.&lt;/p&gt;
&lt;p&gt;When creating a new vdpa_sim_blk device this causes the kernel
to panic in this way:
    $ vdpa dev add mgmtdev vdpasim_blk name blk0
    BUG: kernel NULL pointer dereference, address: 0000000000000030
    ...
    RIP: 0010:vhost_iotlb_add_range_ctx+0x41/0x220 [vhost_iotlb]
    ...
    Call Trace:
     &amp;lt;TASK&amp;gt;
     vhost_iotlb_add_range+0x11/0x800 [vhost_iotlb]
     vdpasim_map_range+0x91/0xd0 [vdpa_sim]
     vdpasim_alloc_coherent+0x56/0x90 [vdpa_sim]
     ...&lt;/p&gt;
&lt;p&gt;This happens because vdpasim-&amp;gt;iommu[0] is not initialized when
dev_attr.nas is 0.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s fix this issue by initializing both (nas, ngroups) to 1 for
vdpa_sim_blk.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-50058</guid>
    </item>
  </channel>
</rss>
