<?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>Mon, 05 Oct 2026 16:41:06 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-36961 — thermal/debugfs: Fix two locking issues with thermal zone debug</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-36961</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;thermal/debugfs: Fix two locking issues with thermal zone debug&lt;/p&gt;
&lt;p&gt;With the current thermal zone locking arrangement in the debugfs code,
user space can open the &amp;#34;mitigations&amp;#34; file for a thermal zone before
the zone&amp;#39;s debugfs pointer is set which will result in a NULL pointer
dereference in tze_seq_start().&lt;/p&gt;
&lt;p&gt;Moreover, thermal_debug_tz_remove() is not called under the thermal
zone lock, so it can run in parallel with the other functions accessing
the thermal zone&amp;#39;s struct thermal_debugfs object.  Then, it may clear
tz-&amp;gt;debugfs after one of those functions has checked it and the
struct thermal_debugfs object may be freed prematurely.&lt;/p&gt;
&lt;p&gt;To address the first problem, pass a pointer to the thermal zone&amp;#39;s
struct thermal_debugfs object to debugfs_create_file() in
thermal_debug_tz_add() and make tze_seq_start(), tze_seq_next(),
tze_seq_stop(), and tze_seq_show() retrieve it from s-&amp;gt;private
instead of a pointer to the thermal zone object.  This will ensure
that tz_debugfs will be valid across the &amp;#34;mitigations&amp;#34; file accesses
until thermal_debugfs_remove_id() called by thermal_debug_tz_remove()
removes that file.&lt;/p&gt;
&lt;p&gt;To address the second problem, use tz-&amp;gt;lock in thermal_debug_tz_remove()
around the tz-&amp;gt;debugfs value check (in case the same thermal zone is
removed at the same time in two different threads) and its reset to NULL.&lt;/p&gt;
&lt;p&gt;Cc :6.8+ &amp;lt;stable@vger.kernel.org&amp;gt; # 6.8+&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;thermal/debugfs: Fix two locking issues with thermal zone debug&lt;/p&gt;
&lt;p&gt;With the current thermal zone locking arrangement in the debugfs code,
user space can open the &amp;#34;mitigations&amp;#34; file for a thermal zone before
the zone&amp;#39;s debugfs pointer is set which will result in a NULL pointer
dereference in tze_seq_start().&lt;/p&gt;
&lt;p&gt;Moreover, thermal_debug_tz_remove() is not called under the thermal
zone lock, so it can run in parallel with the other functions accessing
the thermal zone&amp;#39;s struct thermal_debugfs object.  Then, it may clear
tz-&amp;gt;debugfs after one of those functions has checked it and the
struct thermal_debugfs object may be freed prematurely.&lt;/p&gt;
&lt;p&gt;To address the first problem, pass a pointer to the thermal zone&amp;#39;s
struct thermal_debugfs object to debugfs_create_file() in
thermal_debug_tz_add() and make tze_seq_start(), tze_seq_next(),
tze_seq_stop(), and tze_seq_show() retrieve it from s-&amp;gt;private
instead of a pointer to the thermal zone object.  This will ensure
that tz_debugfs will be valid across the &amp;#34;mitigations&amp;#34; file accesses
until thermal_debugfs_remove_id() called by thermal_debug_tz_remove()
removes that file.&lt;/p&gt;
&lt;p&gt;To address the second problem, use tz-&amp;gt;lock in thermal_debug_tz_remove()
around the tz-&amp;gt;debugfs value check (in case the same thermal zone is
removed at the same time in two different threads) and its reset to NULL.&lt;/p&gt;
&lt;p&gt;Cc :6.8+ &amp;lt;stable@vger.kernel.org&amp;gt; # 6.8+&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-36961</guid>
    </item>
  </channel>
</rss>
