<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-05T16:41:22.695978+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2024-36961</id>
    <title>CVE-2024-36961 — thermal/debugfs: Fix two locking issues with thermal zone debug</title>
    <updated>2026-10-05T16:41:22.697776+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>thermal/debugfs: Fix two locking issues with thermal zone debug</p>
<p>With the current thermal zone locking arrangement in the debugfs code,
user space can open the "mitigations" file for a thermal zone before
the zone's debugfs pointer is set which will result in a NULL pointer
dereference in tze_seq_start().</p>
<p>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's struct thermal_debugfs object.  Then, it may clear
tz-&gt;debugfs after one of those functions has checked it and the
struct thermal_debugfs object may be freed prematurely.</p>
<p>To address the first problem, pass a pointer to the thermal zone'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-&gt;private
instead of a pointer to the thermal zone object.  This will ensure
that tz_debugfs will be valid across the "mitigations" file accesses
until thermal_debugfs_remove_id() called by thermal_debug_tz_remove()
removes that file.</p>
<p>To address the second problem, use tz-&gt;lock in thermal_debug_tz_remove()
around the tz-&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.</p>
<p>Cc :6.8+ &lt;stable@vger.kernel.org&gt; # 6.8+</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-36961"/>
  </entry>
</feed>
