<?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://cve.radiocsirt.org</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, 06 Oct 2026 14:38:32 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-36899 — gpiolib: cdev: Fix use after free in lineinfo_changed_notify</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-36899</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;gpiolib: cdev: Fix use after free in lineinfo_changed_notify&lt;/p&gt;
&lt;p&gt;The use-after-free issue occurs as follows: when the GPIO chip device file
is being closed by invoking gpio_chrdev_release(), watched_lines is freed
by bitmap_free(), but the unregistration of lineinfo_changed_nb notifier
chain failed due to waiting write rwsem. Additionally, one of the GPIO
chip&amp;#39;s lines is also in the release process and holds the notifier chain&amp;#39;s
read rwsem. Consequently, a race condition leads to the use-after-free of
watched_lines.&lt;/p&gt;
&lt;p&gt;Here is the typical stack when issue happened:&lt;/p&gt;
&lt;p&gt;[free]
gpio_chrdev_release()
  --&amp;gt; bitmap_free(cdev-&amp;gt;watched_lines)                  &amp;lt;-- freed
  --&amp;gt; blocking_notifier_chain_unregister()
    --&amp;gt; down_write(&amp;amp;nh-&amp;gt;rwsem)                          &amp;lt;-- waiting rwsem
          --&amp;gt; __down_write_common()
            --&amp;gt; rwsem_down_write_slowpath()
                  --&amp;gt; schedule_preempt_disabled()
                    --&amp;gt; schedule()&lt;/p&gt;
&lt;p&gt;[use]
st54spi_gpio_dev_release()
  --&amp;gt; gpio_free()
    --&amp;gt; gpiod_free()
      --&amp;gt; gpiod_free_commit()
        --&amp;gt; gpiod_line_state_notify()
          --&amp;gt; blocking_notifier_call_chain()
            --&amp;gt; down_read(&amp;amp;nh-&amp;gt;rwsem);                  &amp;lt;-- held rwsem
            --&amp;gt; notifier_call_chain()
              --&amp;gt; lineinfo_changed_notify()
                --&amp;gt; test_bit(xxxx, cdev-&amp;gt;watched_lines) &amp;lt;-- use after free&lt;/p&gt;
&lt;p&gt;The side effect of the use-after-free issue is that a GPIO line event…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;gpiolib: cdev: Fix use after free in lineinfo_changed_notify&lt;/p&gt;
&lt;p&gt;The use-after-free issue occurs as follows: when the GPIO chip device file
is being closed by invoking gpio_chrdev_release(), watched_lines is freed
by bitmap_free(), but the unregistration of lineinfo_changed_nb notifier
chain failed due to waiting write rwsem. Additionally, one of the GPIO
chip&amp;#39;s lines is also in the release process and holds the notifier chain&amp;#39;s
read rwsem. Consequently, a race condition leads to the use-after-free of
watched_lines.&lt;/p&gt;
&lt;p&gt;Here is the typical stack when issue happened:&lt;/p&gt;
&lt;p&gt;[free]
gpio_chrdev_release()
  --&amp;gt; bitmap_free(cdev-&amp;gt;watched_lines)                  &amp;lt;-- freed
  --&amp;gt; blocking_notifier_chain_unregister()
    --&amp;gt; down_write(&amp;amp;nh-&amp;gt;rwsem)                          &amp;lt;-- waiting rwsem
          --&amp;gt; __down_write_common()
            --&amp;gt; rwsem_down_write_slowpath()
                  --&amp;gt; schedule_preempt_disabled()
                    --&amp;gt; schedule()&lt;/p&gt;
&lt;p&gt;[use]
st54spi_gpio_dev_release()
  --&amp;gt; gpio_free()
    --&amp;gt; gpiod_free()
      --&amp;gt; gpiod_free_commit()
        --&amp;gt; gpiod_line_state_notify()
          --&amp;gt; blocking_notifier_call_chain()
            --&amp;gt; down_read(&amp;amp;nh-&amp;gt;rwsem);                  &amp;lt;-- held rwsem
            --&amp;gt; notifier_call_chain()
              --&amp;gt; lineinfo_changed_notify()
                --&amp;gt; test_bit(xxxx, cdev-&amp;gt;watched_lines) &amp;lt;-- use after free&lt;/p&gt;
&lt;p&gt;The side effect of the use-after-free issue is that a GPIO line event…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-36899</guid>
    </item>
  </channel>
</rss>
