<?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>Sun, 04 Oct 2026 05:45:14 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-35981 — virtio_net: Do not send RSS key if it is not supported</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-35981</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;virtio_net: Do not send RSS key if it is not supported&lt;/p&gt;
&lt;p&gt;There is a bug when setting the RSS options in virtio_net that can break
the whole machine, getting the kernel into an infinite loop.&lt;/p&gt;
&lt;p&gt;Running the following command in any QEMU virtual machine with virtionet
will reproduce this problem:&lt;/p&gt;
&lt;p&gt;# ethtool -X eth0  hfunc toeplitz&lt;/p&gt;
&lt;p&gt;This is how the problem happens:&lt;/p&gt;
&lt;p&gt;1) ethtool_set_rxfh() calls virtnet_set_rxfh()&lt;/p&gt;
&lt;p&gt;2) virtnet_set_rxfh() calls virtnet_commit_rss_command()&lt;/p&gt;
&lt;p&gt;3) virtnet_commit_rss_command() populates 4 entries for the rss
scatter-gather&lt;/p&gt;
&lt;p&gt;4) Since the command above does not have a key, then the last
scatter-gatter entry will be zeroed, since rss_key_size == 0.
sg_buf_size = vi-&amp;gt;rss_key_size;&lt;/p&gt;
&lt;p&gt;5) This buffer is passed to qemu, but qemu is not happy with a buffer
with zero length, and do the following in virtqueue_map_desc() (QEMU
function):&lt;/p&gt;
&lt;p&gt;if (!sz) {
      virtio_error(vdev, &amp;#34;virtio: zero sized buffers are not allowed&amp;#34;);&lt;/p&gt;
&lt;p&gt;6) virtio_error() (also QEMU function) set the device as broken&lt;/p&gt;
&lt;p&gt;vdev-&amp;gt;broken = true;&lt;/p&gt;
&lt;p&gt;7) Qemu bails out, and do not repond this crazy kernel.&lt;/p&gt;
&lt;p&gt;8) The kernel is waiting for the response to come back (function
virtnet_send_command())&lt;/p&gt;
&lt;p&gt;9) The kernel is waiting doing the following :&lt;/p&gt;
&lt;p&gt;while (!virtqueue_get_buf(vi-&amp;gt;cvq, &amp;amp;tmp) &amp;amp;&amp;amp;
	     !virtqueue_is_broken(vi-&amp;gt;cvq))
	      cpu_relax();&lt;/p&gt;
&lt;p&gt;10) None of the following functions above is true, thus, the kernel
loops here forever. K…&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;virtio_net: Do not send RSS key if it is not supported&lt;/p&gt;
&lt;p&gt;There is a bug when setting the RSS options in virtio_net that can break
the whole machine, getting the kernel into an infinite loop.&lt;/p&gt;
&lt;p&gt;Running the following command in any QEMU virtual machine with virtionet
will reproduce this problem:&lt;/p&gt;
&lt;p&gt;# ethtool -X eth0  hfunc toeplitz&lt;/p&gt;
&lt;p&gt;This is how the problem happens:&lt;/p&gt;
&lt;p&gt;1) ethtool_set_rxfh() calls virtnet_set_rxfh()&lt;/p&gt;
&lt;p&gt;2) virtnet_set_rxfh() calls virtnet_commit_rss_command()&lt;/p&gt;
&lt;p&gt;3) virtnet_commit_rss_command() populates 4 entries for the rss
scatter-gather&lt;/p&gt;
&lt;p&gt;4) Since the command above does not have a key, then the last
scatter-gatter entry will be zeroed, since rss_key_size == 0.
sg_buf_size = vi-&amp;gt;rss_key_size;&lt;/p&gt;
&lt;p&gt;5) This buffer is passed to qemu, but qemu is not happy with a buffer
with zero length, and do the following in virtqueue_map_desc() (QEMU
function):&lt;/p&gt;
&lt;p&gt;if (!sz) {
      virtio_error(vdev, &amp;#34;virtio: zero sized buffers are not allowed&amp;#34;);&lt;/p&gt;
&lt;p&gt;6) virtio_error() (also QEMU function) set the device as broken&lt;/p&gt;
&lt;p&gt;vdev-&amp;gt;broken = true;&lt;/p&gt;
&lt;p&gt;7) Qemu bails out, and do not repond this crazy kernel.&lt;/p&gt;
&lt;p&gt;8) The kernel is waiting for the response to come back (function
virtnet_send_command())&lt;/p&gt;
&lt;p&gt;9) The kernel is waiting doing the following :&lt;/p&gt;
&lt;p&gt;while (!virtqueue_get_buf(vi-&amp;gt;cvq, &amp;amp;tmp) &amp;amp;&amp;amp;
	     !virtqueue_is_broken(vi-&amp;gt;cvq))
	      cpu_relax();&lt;/p&gt;
&lt;p&gt;10) None of the following functions above is true, thus, the kernel
loops here forever. K…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-35981</guid>
    </item>
  </channel>
</rss>
