<?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>Thu, 01 Oct 2026 01:50:47 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49304 — drivers: tty: serial: Fix deadlock in sa1100_set_termios()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-49304</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;drivers: tty: serial: Fix deadlock in sa1100_set_termios()&lt;/p&gt;
&lt;p&gt;There is a deadlock in sa1100_set_termios(), which is shown
below:&lt;/p&gt;
&lt;p&gt;(Thread 1)              |      (Thread 2)
                           | sa1100_enable_ms()
sa1100_set_termios()       |  mod_timer()
 spin_lock_irqsave() //(1) |  (wait a time)
 ...                       | sa1100_timeout()
 del_timer_sync()          |  spin_lock_irqsave() //(2)
 (wait timer to stop)      |  ...&lt;/p&gt;
&lt;p&gt;We hold sport-&amp;gt;port.lock in position (1) of thread 1 and
use del_timer_sync() to wait timer to stop, but timer handler
also need sport-&amp;gt;port.lock in position (2) of thread 2. As a result,
sa1100_set_termios() will block forever.&lt;/p&gt;
&lt;p&gt;This patch moves del_timer_sync() before spin_lock_irqsave()
in order to prevent the deadlock.&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;drivers: tty: serial: Fix deadlock in sa1100_set_termios()&lt;/p&gt;
&lt;p&gt;There is a deadlock in sa1100_set_termios(), which is shown
below:&lt;/p&gt;
&lt;p&gt;(Thread 1)              |      (Thread 2)
                           | sa1100_enable_ms()
sa1100_set_termios()       |  mod_timer()
 spin_lock_irqsave() //(1) |  (wait a time)
 ...                       | sa1100_timeout()
 del_timer_sync()          |  spin_lock_irqsave() //(2)
 (wait timer to stop)      |  ...&lt;/p&gt;
&lt;p&gt;We hold sport-&amp;gt;port.lock in position (1) of thread 1 and
use del_timer_sync() to wait timer to stop, but timer handler
also need sport-&amp;gt;port.lock in position (2) of thread 2. As a result,
sa1100_set_termios() will block forever.&lt;/p&gt;
&lt;p&gt;This patch moves del_timer_sync() before spin_lock_irqsave()
in order to prevent the deadlock.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-49304</guid>
    </item>
  </channel>
</rss>
