<?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>Wed, 30 Sep 2026 08:31:31 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-23167 — nfc: nci: Fix race between rfkill and nci_unregister_device().</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-23167</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: nci: Fix race between rfkill and nci_unregister_device().&lt;/p&gt;
&lt;p&gt;syzbot reported the splat below [0] without a repro.&lt;/p&gt;
&lt;p&gt;It indicates that struct nci_dev.cmd_wq had been destroyed before
nci_close_device() was called via rfkill.&lt;/p&gt;
&lt;p&gt;nci_dev.cmd_wq is only destroyed in nci_unregister_device(), which
(I think) was called from virtual_ncidev_close() when syzbot close()d
an fd of virtual_ncidev.&lt;/p&gt;
&lt;p&gt;The problem is that nci_unregister_device() destroys nci_dev.cmd_wq
first and then calls nfc_unregister_device(), which removes the
device from rfkill by rfkill_unregister().&lt;/p&gt;
&lt;p&gt;So, the device is still visible via rfkill even after nci_dev.cmd_wq
is destroyed.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s unregister the device from rfkill first in nci_unregister_device().&lt;/p&gt;
&lt;p&gt;Note that we cannot call nfc_unregister_device() before
nci_close_device() because&lt;/p&gt;
&lt;p&gt;1) nfc_unregister_device() calls device_del() which frees
     all memory allocated by devm_kzalloc() and linked to
     ndev-&amp;gt;conn_info_list&lt;/p&gt;
&lt;p&gt;2) nci_rx_work() could try to queue nci_conn_info to
     ndev-&amp;gt;conn_info_list which could be leaked&lt;/p&gt;
&lt;p&gt;Thus, nfc_unregister_device() is split into two functions so we
can remove rfkill interfaces only before nci_close_device().&lt;/p&gt;
&lt;p&gt;[0]:
DEBUG_LOCKS_WARN_ON(1)
WARNING: kernel/locking/lockdep.c:238 at hlock_class kernel/locking/lockdep.c:238 [inline], CPU#0: syz.0.8675/6349
WARNING: kernel/locking/lockdep.c:238 at check_wait_context kernel/locking/lockdep.c:4854 [inline], CPU…&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: nci: Fix race between rfkill and nci_unregister_device().&lt;/p&gt;
&lt;p&gt;syzbot reported the splat below [0] without a repro.&lt;/p&gt;
&lt;p&gt;It indicates that struct nci_dev.cmd_wq had been destroyed before
nci_close_device() was called via rfkill.&lt;/p&gt;
&lt;p&gt;nci_dev.cmd_wq is only destroyed in nci_unregister_device(), which
(I think) was called from virtual_ncidev_close() when syzbot close()d
an fd of virtual_ncidev.&lt;/p&gt;
&lt;p&gt;The problem is that nci_unregister_device() destroys nci_dev.cmd_wq
first and then calls nfc_unregister_device(), which removes the
device from rfkill by rfkill_unregister().&lt;/p&gt;
&lt;p&gt;So, the device is still visible via rfkill even after nci_dev.cmd_wq
is destroyed.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s unregister the device from rfkill first in nci_unregister_device().&lt;/p&gt;
&lt;p&gt;Note that we cannot call nfc_unregister_device() before
nci_close_device() because&lt;/p&gt;
&lt;p&gt;1) nfc_unregister_device() calls device_del() which frees
     all memory allocated by devm_kzalloc() and linked to
     ndev-&amp;gt;conn_info_list&lt;/p&gt;
&lt;p&gt;2) nci_rx_work() could try to queue nci_conn_info to
     ndev-&amp;gt;conn_info_list which could be leaked&lt;/p&gt;
&lt;p&gt;Thus, nfc_unregister_device() is split into two functions so we
can remove rfkill interfaces only before nci_close_device().&lt;/p&gt;
&lt;p&gt;[0]:
DEBUG_LOCKS_WARN_ON(1)
WARNING: kernel/locking/lockdep.c:238 at hlock_class kernel/locking/lockdep.c:238 [inline], CPU#0: syz.0.8675/6349
WARNING: kernel/locking/lockdep.c:238 at check_wait_context kernel/locking/lockdep.c:4854 [inline], CPU…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-23167</guid>
    </item>
  </channel>
</rss>
