<?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 18:27:12 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50005 — nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout</title>
      <link>https://db.gcve.eu/vuln/cve-2022-50005</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;nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout&lt;/p&gt;
&lt;p&gt;When the pn532 uart device is detaching, the pn532_uart_remove()
is called. But there are no functions in pn532_uart_remove() that
could delete the cmd_timeout timer, which will cause use-after-free
bugs. The process is shown below:&lt;/p&gt;
&lt;p&gt;(thread 1)                  |        (thread 2)
                                |  pn532_uart_send_frame
pn532_uart_remove               |    mod_timer(&amp;amp;pn532-&amp;gt;cmd_timeout,...)
  ...                           |    (wait a time)
  kfree(pn532) //FREE           |    pn532_cmd_timeout
                                |      pn532_uart_send_frame
                                |        pn532-&amp;gt;... //USE&lt;/p&gt;
&lt;p&gt;This patch adds del_timer_sync() in pn532_uart_remove() in order to
prevent the use-after-free bugs. What&amp;#39;s more, the pn53x_unregister_nfc()
is well synchronized, it sets nfc_dev-&amp;gt;shutting_down to true and there
are no syscalls could restart the cmd_timeout timer.&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;nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout&lt;/p&gt;
&lt;p&gt;When the pn532 uart device is detaching, the pn532_uart_remove()
is called. But there are no functions in pn532_uart_remove() that
could delete the cmd_timeout timer, which will cause use-after-free
bugs. The process is shown below:&lt;/p&gt;
&lt;p&gt;(thread 1)                  |        (thread 2)
                                |  pn532_uart_send_frame
pn532_uart_remove               |    mod_timer(&amp;amp;pn532-&amp;gt;cmd_timeout,...)
  ...                           |    (wait a time)
  kfree(pn532) //FREE           |    pn532_cmd_timeout
                                |      pn532_uart_send_frame
                                |        pn532-&amp;gt;... //USE&lt;/p&gt;
&lt;p&gt;This patch adds del_timer_sync() in pn532_uart_remove() in order to
prevent the use-after-free bugs. What&amp;#39;s more, the pn53x_unregister_nfc()
is well synchronized, it sets nfc_dev-&amp;gt;shutting_down to true and there
are no syscalls could restart the cmd_timeout timer.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-50005</guid>
    </item>
  </channel>
</rss>
