<?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>Tue, 29 Sep 2026 07:49:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-38613 — m68k: Fix spinlock race in kernel thread creation</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-38613</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;m68k: Fix spinlock race in kernel thread creation&lt;/p&gt;
&lt;p&gt;Context switching does take care to retain the correct lock owner across
the switch from &amp;#39;prev&amp;#39; to &amp;#39;next&amp;#39; tasks.  This does rely on interrupts
remaining disabled for the entire duration of the switch.&lt;/p&gt;
&lt;p&gt;This condition is guaranteed for normal process creation and context
switching between already running processes, because both &amp;#39;prev&amp;#39; and
&amp;#39;next&amp;#39; already have interrupts disabled in their saved copies of the
status register.&lt;/p&gt;
&lt;p&gt;The situation is different for newly created kernel threads.  The status
register is set to PS_S in copy_thread(), which does leave the IPL at 0.
Upon restoring the &amp;#39;next&amp;#39; thread&amp;#39;s status register in switch_to() aka
resume(), interrupts then become enabled prematurely.  resume() then
returns via ret_from_kernel_thread() and schedule_tail() where run queue
lock is released (see finish_task_switch() and finish_lock_switch()).&lt;/p&gt;
&lt;p&gt;A timer interrupt calling scheduler_tick() before the lock is released
in finish_task_switch() will find the lock already taken, with the
current task as lock owner.  This causes a spinlock recursion warning as
reported by Guenter Roeck.&lt;/p&gt;
&lt;p&gt;As far as I can ascertain, this race has been opened in commit
533e6903bea0 (&amp;#34;m68k: split ret_from_fork(), simplify kernel_thread()&amp;#34;)
but I haven&amp;#39;t done a detailed study of kernel history so it may well
predate that commit.&lt;/p&gt;
&lt;p&gt;Interrupts cannot be disabled in the saved status register…&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;m68k: Fix spinlock race in kernel thread creation&lt;/p&gt;
&lt;p&gt;Context switching does take care to retain the correct lock owner across
the switch from &amp;#39;prev&amp;#39; to &amp;#39;next&amp;#39; tasks.  This does rely on interrupts
remaining disabled for the entire duration of the switch.&lt;/p&gt;
&lt;p&gt;This condition is guaranteed for normal process creation and context
switching between already running processes, because both &amp;#39;prev&amp;#39; and
&amp;#39;next&amp;#39; already have interrupts disabled in their saved copies of the
status register.&lt;/p&gt;
&lt;p&gt;The situation is different for newly created kernel threads.  The status
register is set to PS_S in copy_thread(), which does leave the IPL at 0.
Upon restoring the &amp;#39;next&amp;#39; thread&amp;#39;s status register in switch_to() aka
resume(), interrupts then become enabled prematurely.  resume() then
returns via ret_from_kernel_thread() and schedule_tail() where run queue
lock is released (see finish_task_switch() and finish_lock_switch()).&lt;/p&gt;
&lt;p&gt;A timer interrupt calling scheduler_tick() before the lock is released
in finish_task_switch() will find the lock already taken, with the
current task as lock owner.  This causes a spinlock recursion warning as
reported by Guenter Roeck.&lt;/p&gt;
&lt;p&gt;As far as I can ascertain, this race has been opened in commit
533e6903bea0 (&amp;#34;m68k: split ret_from_fork(), simplify kernel_thread()&amp;#34;)
but I haven&amp;#39;t done a detailed study of kernel history so it may well
predate that commit.&lt;/p&gt;
&lt;p&gt;Interrupts cannot be disabled in the saved status register…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-38613</guid>
    </item>
  </channel>
</rss>
