<?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>Fri, 02 Oct 2026 12:30:10 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38170 — arm64/fpsimd: Discard stale CPU state when handling SME traps</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38170</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;arm64/fpsimd: Discard stale CPU state when handling SME traps&lt;/p&gt;
&lt;p&gt;The logic for handling SME traps manipulates saved FPSIMD/SVE/SME state
incorrectly, and a race with preemption can result in a task having
TIF_SME set and TIF_FOREIGN_FPSTATE clear even though the live CPU state
is stale (e.g. with SME traps enabled). This can result in warnings from
do_sme_acc() where SME traps are not expected while TIF_SME is set:&lt;/p&gt;
&lt;p&gt;|        /* With TIF_SME userspace shouldn&amp;#39;t generate any traps */
|        if (test_and_set_thread_flag(TIF_SME))
|                WARN_ON(1);&lt;/p&gt;
&lt;p&gt;This is very similar to the SVE issue we fixed in commit:&lt;/p&gt;
&lt;p&gt;751ecf6afd6568ad (&amp;#34;arm64/sve: Discard stale CPU state when handling SVE traps&amp;#34;)&lt;/p&gt;
&lt;p&gt;The race can occur when the SME trap handler is preempted before and
after manipulating the saved FPSIMD/SVE/SME state, starting and ending on
the same CPU, e.g.&lt;/p&gt;
&lt;p&gt;| void do_sme_acc(unsigned long esr, struct pt_regs *regs)
| {
|         // Trap on CPU 0 with TIF_SME clear, SME traps enabled
|         // task-&amp;gt;fpsimd_cpu is 0.
|         // per_cpu_ptr(&amp;amp;fpsimd_last_state, 0) is task.
|
|         ...
|
|         // Preempted; migrated from CPU 0 to CPU 1.
|         // TIF_FOREIGN_FPSTATE is set.
|
|         get_cpu_fpsimd_context();
|
|         /* With TIF_SME userspace shouldn&amp;#39;t generate any traps */
|         if (test_and_set_thread_flag(TIF_SME))
|                 WARN_ON(1);
|
|         if (!test_thread_flag(TIF_FOR…&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;arm64/fpsimd: Discard stale CPU state when handling SME traps&lt;/p&gt;
&lt;p&gt;The logic for handling SME traps manipulates saved FPSIMD/SVE/SME state
incorrectly, and a race with preemption can result in a task having
TIF_SME set and TIF_FOREIGN_FPSTATE clear even though the live CPU state
is stale (e.g. with SME traps enabled). This can result in warnings from
do_sme_acc() where SME traps are not expected while TIF_SME is set:&lt;/p&gt;
&lt;p&gt;|        /* With TIF_SME userspace shouldn&amp;#39;t generate any traps */
|        if (test_and_set_thread_flag(TIF_SME))
|                WARN_ON(1);&lt;/p&gt;
&lt;p&gt;This is very similar to the SVE issue we fixed in commit:&lt;/p&gt;
&lt;p&gt;751ecf6afd6568ad (&amp;#34;arm64/sve: Discard stale CPU state when handling SVE traps&amp;#34;)&lt;/p&gt;
&lt;p&gt;The race can occur when the SME trap handler is preempted before and
after manipulating the saved FPSIMD/SVE/SME state, starting and ending on
the same CPU, e.g.&lt;/p&gt;
&lt;p&gt;| void do_sme_acc(unsigned long esr, struct pt_regs *regs)
| {
|         // Trap on CPU 0 with TIF_SME clear, SME traps enabled
|         // task-&amp;gt;fpsimd_cpu is 0.
|         // per_cpu_ptr(&amp;amp;fpsimd_last_state, 0) is task.
|
|         ...
|
|         // Preempted; migrated from CPU 0 to CPU 1.
|         // TIF_FOREIGN_FPSTATE is set.
|
|         get_cpu_fpsimd_context();
|
|         /* With TIF_SME userspace shouldn&amp;#39;t generate any traps */
|         if (test_and_set_thread_flag(TIF_SME))
|                 WARN_ON(1);
|
|         if (!test_thread_flag(TIF_FOR…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38170</guid>
    </item>
  </channel>
</rss>
