<?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>Sat, 03 Oct 2026 05:32:50 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49441 — tty: fix deadlock caused by calling printk() under tty_port-&gt;lock</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-49441</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;tty: fix deadlock caused by calling printk() under tty_port-&amp;gt;lock&lt;/p&gt;
&lt;p&gt;pty_write() invokes kmalloc() which may invoke a normal printk() to print
failure message.  This can cause a deadlock in the scenario reported by
syz-bot below:&lt;/p&gt;
&lt;p&gt;CPU0              CPU1                    CPU2
       ----              ----                    ----
                         lock(console_owner);
                                                 lock(&amp;amp;port_lock_key);
  lock(&amp;amp;port-&amp;gt;lock);
                         lock(&amp;amp;port_lock_key);
                                                 lock(&amp;amp;port-&amp;gt;lock);
  lock(console_owner);&lt;/p&gt;
&lt;p&gt;As commit dbdda842fe96 (&amp;#34;printk: Add console owner and waiter logic to
load balance console writes&amp;#34;) said, such deadlock can be prevented by
using printk_deferred() in kmalloc() (which is invoked in the section
guarded by the port-&amp;gt;lock).  But there are too many printk() on the
kmalloc() path, and kmalloc() can be called from anywhere, so changing
printk() to printk_deferred() is too complicated and inelegant.&lt;/p&gt;
&lt;p&gt;Therefore, this patch chooses to specify __GFP_NOWARN to kmalloc(), so
that printk() will not be called, and this deadlock problem can be
avoided.&lt;/p&gt;
&lt;p&gt;Syzbot reported the following lockdep error:&lt;/p&gt;
&lt;p&gt;======================================================
WARNING: possible circular locking dependency detected
5.4.143-00237-g08ccc19a-dirty #10 Not tainted
---------------------------------------------------…&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;tty: fix deadlock caused by calling printk() under tty_port-&amp;gt;lock&lt;/p&gt;
&lt;p&gt;pty_write() invokes kmalloc() which may invoke a normal printk() to print
failure message.  This can cause a deadlock in the scenario reported by
syz-bot below:&lt;/p&gt;
&lt;p&gt;CPU0              CPU1                    CPU2
       ----              ----                    ----
                         lock(console_owner);
                                                 lock(&amp;amp;port_lock_key);
  lock(&amp;amp;port-&amp;gt;lock);
                         lock(&amp;amp;port_lock_key);
                                                 lock(&amp;amp;port-&amp;gt;lock);
  lock(console_owner);&lt;/p&gt;
&lt;p&gt;As commit dbdda842fe96 (&amp;#34;printk: Add console owner and waiter logic to
load balance console writes&amp;#34;) said, such deadlock can be prevented by
using printk_deferred() in kmalloc() (which is invoked in the section
guarded by the port-&amp;gt;lock).  But there are too many printk() on the
kmalloc() path, and kmalloc() can be called from anywhere, so changing
printk() to printk_deferred() is too complicated and inelegant.&lt;/p&gt;
&lt;p&gt;Therefore, this patch chooses to specify __GFP_NOWARN to kmalloc(), so
that printk() will not be called, and this deadlock problem can be
avoided.&lt;/p&gt;
&lt;p&gt;Syzbot reported the following lockdep error:&lt;/p&gt;
&lt;p&gt;======================================================
WARNING: possible circular locking dependency detected
5.4.143-00237-g08ccc19a-dirty #10 Not tainted
---------------------------------------------------…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-49441</guid>
    </item>
  </channel>
</rss>
