<?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>Wed, 30 Sep 2026 15:06:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52761 — riscv: VMAP_STACK overflow detection thread-safe</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52761</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;riscv: VMAP_STACK overflow detection thread-safe&lt;/p&gt;
&lt;p&gt;commit 31da94c25aea (&amp;#34;riscv: add VMAP_STACK overflow detection&amp;#34;) added
support for CONFIG_VMAP_STACK. If overflow is detected, CPU switches to
`shadow_stack` temporarily before switching finally to per-cpu
`overflow_stack`.&lt;/p&gt;
&lt;p&gt;If two CPUs/harts are racing and end up in over flowing kernel stack, one
or both will end up corrupting each other state because `shadow_stack` is
not per-cpu. This patch optimizes per-cpu overflow stack switch by
directly picking per-cpu `overflow_stack` and gets rid of `shadow_stack`.&lt;/p&gt;
&lt;p&gt;Following are the changes in this patch&lt;/p&gt;
&lt;p&gt;- Defines an asm macro to obtain per-cpu symbols in destination
   register.
 - In entry.S, when overflow is detected, per-cpu overflow stack is
   located using per-cpu asm macro. Computing per-cpu symbol requires
   a temporary register. x31 is saved away into CSR_SCRATCH
   (CSR_SCRATCH is anyways zero since we&amp;#39;re in kernel).&lt;/p&gt;
&lt;p&gt;Please see Links for additional relevant disccussion and alternative
solution.&lt;/p&gt;
&lt;p&gt;Tested by `echo EXHAUST_STACK &amp;gt; /sys/kernel/debug/provoke-crash/DIRECT`
Kernel crash log below&lt;/p&gt;
&lt;p&gt;Insufficient stack space to handle exception!/debug/provoke-crash/DIRECT
 Task stack:     [0xff20000010a98000..0xff20000010a9c000]
 Overflow stack: [0xff600001f7d98370..0xff600001f7d99370]
 CPU: 1 PID: 205 Comm: bash Not tainted 6.1.0-rc2-00001-g328a1f96f7b9 #34
 Hardware name: riscv-virtio,qemu (DT)
 epc : __mem…&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;riscv: VMAP_STACK overflow detection thread-safe&lt;/p&gt;
&lt;p&gt;commit 31da94c25aea (&amp;#34;riscv: add VMAP_STACK overflow detection&amp;#34;) added
support for CONFIG_VMAP_STACK. If overflow is detected, CPU switches to
`shadow_stack` temporarily before switching finally to per-cpu
`overflow_stack`.&lt;/p&gt;
&lt;p&gt;If two CPUs/harts are racing and end up in over flowing kernel stack, one
or both will end up corrupting each other state because `shadow_stack` is
not per-cpu. This patch optimizes per-cpu overflow stack switch by
directly picking per-cpu `overflow_stack` and gets rid of `shadow_stack`.&lt;/p&gt;
&lt;p&gt;Following are the changes in this patch&lt;/p&gt;
&lt;p&gt;- Defines an asm macro to obtain per-cpu symbols in destination
   register.
 - In entry.S, when overflow is detected, per-cpu overflow stack is
   located using per-cpu asm macro. Computing per-cpu symbol requires
   a temporary register. x31 is saved away into CSR_SCRATCH
   (CSR_SCRATCH is anyways zero since we&amp;#39;re in kernel).&lt;/p&gt;
&lt;p&gt;Please see Links for additional relevant disccussion and alternative
solution.&lt;/p&gt;
&lt;p&gt;Tested by `echo EXHAUST_STACK &amp;gt; /sys/kernel/debug/provoke-crash/DIRECT`
Kernel crash log below&lt;/p&gt;
&lt;p&gt;Insufficient stack space to handle exception!/debug/provoke-crash/DIRECT
 Task stack:     [0xff20000010a98000..0xff20000010a9c000]
 Overflow stack: [0xff600001f7d98370..0xff600001f7d99370]
 CPU: 1 PID: 205 Comm: bash Not tainted 6.1.0-rc2-00001-g328a1f96f7b9 #34
 Hardware name: riscv-virtio,qemu (DT)
 epc : __mem…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52761</guid>
    </item>
  </channel>
</rss>
