<?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>Fri, 02 Oct 2026 18:34:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50314 — nbd: Fix hung when signal interrupts nbd_start_device_ioctl()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-50314</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;nbd: Fix hung when signal interrupts nbd_start_device_ioctl()&lt;/p&gt;
&lt;p&gt;syzbot reported hung task [1].  The following program is a simplified
version of the reproducer:&lt;/p&gt;
&lt;p&gt;int main(void)
{
	int sv[2], fd;&lt;/p&gt;
&lt;p&gt;if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) &amp;lt; 0)
		return 1;
	if ((fd = open(&amp;#34;/dev/nbd0&amp;#34;, 0)) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_SET_SOCK, sv[0]) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_DO_IT) &amp;lt; 0)
		return 1;
	return 0;
}&lt;/p&gt;
&lt;p&gt;When signal interrupt nbd_start_device_ioctl() waiting the condition
atomic_read(&amp;amp;config-&amp;gt;recv_threads) == 0, the task can hung because it
waits the completion of the inflight IOs.&lt;/p&gt;
&lt;p&gt;This patch fixes the issue by clearing queue, not just shutdown, when
signal interrupt nbd_start_device_ioctl().&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;nbd: Fix hung when signal interrupts nbd_start_device_ioctl()&lt;/p&gt;
&lt;p&gt;syzbot reported hung task [1].  The following program is a simplified
version of the reproducer:&lt;/p&gt;
&lt;p&gt;int main(void)
{
	int sv[2], fd;&lt;/p&gt;
&lt;p&gt;if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) &amp;lt; 0)
		return 1;
	if ((fd = open(&amp;#34;/dev/nbd0&amp;#34;, 0)) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_SET_SOCK, sv[0]) &amp;lt; 0)
		return 1;
	if (ioctl(fd, NBD_DO_IT) &amp;lt; 0)
		return 1;
	return 0;
}&lt;/p&gt;
&lt;p&gt;When signal interrupt nbd_start_device_ioctl() waiting the condition
atomic_read(&amp;amp;config-&amp;gt;recv_threads) == 0, the task can hung because it
waits the completion of the inflight IOs.&lt;/p&gt;
&lt;p&gt;This patch fixes the issue by clearing queue, not just shutdown, when
signal interrupt nbd_start_device_ioctl().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-50314</guid>
    </item>
  </channel>
</rss>
