<?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://cve.radiocsirt.org</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>Sun, 04 Oct 2026 18:13:41 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47069 — ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2021-47069</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;ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry&lt;/p&gt;
&lt;p&gt;do_mq_timedreceive calls wq_sleep with a stack local address.  The
sender (do_mq_timedsend) uses this address to later call pipelined_send.&lt;/p&gt;
&lt;p&gt;This leads to a very hard to trigger race where a do_mq_timedreceive
call might return and leave do_mq_timedsend to rely on an invalid
address, causing the following crash:&lt;/p&gt;
&lt;p&gt;RIP: 0010:wake_q_add_safe+0x13/0x60
  Call Trace:
   __x64_sys_mq_timedsend+0x2a9/0x490
   do_syscall_64+0x80/0x680
   entry_SYSCALL_64_after_hwframe+0x44/0xa9
  RIP: 0033:0x7f5928e40343&lt;/p&gt;
&lt;p&gt;The race occurs as:&lt;/p&gt;
&lt;p&gt;1. do_mq_timedreceive calls wq_sleep with the address of `struct
   ext_wait_queue` on function stack (aliased as `ewq_addr` here) - it
   holds a valid `struct ext_wait_queue *` as long as the stack has not
   been overwritten.&lt;/p&gt;
&lt;p&gt;2. `ewq_addr` gets added to info-&amp;gt;e_wait_q[RECV].list in wq_add, and
   do_mq_timedsend receives it via wq_get_first_waiter(info, RECV) to call
   __pipelined_op.&lt;/p&gt;
&lt;p&gt;3. Sender calls __pipelined_op::smp_store_release(&amp;amp;this-&amp;gt;state,
   STATE_READY).  Here is where the race window begins.  (`this` is
   `ewq_addr`.)&lt;/p&gt;
&lt;p&gt;4. If the receiver wakes up now in do_mq_timedreceive::wq_sleep, it
   will see `state == STATE_READY` and break.&lt;/p&gt;
&lt;p&gt;5. do_mq_timedreceive returns, and `ewq_addr` is no longer guaranteed
   to be a `struct ext_wait_queue *` since it was on do_mq_timedreceive&amp;#39;s
   stack.  (Although the add…&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;ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry&lt;/p&gt;
&lt;p&gt;do_mq_timedreceive calls wq_sleep with a stack local address.  The
sender (do_mq_timedsend) uses this address to later call pipelined_send.&lt;/p&gt;
&lt;p&gt;This leads to a very hard to trigger race where a do_mq_timedreceive
call might return and leave do_mq_timedsend to rely on an invalid
address, causing the following crash:&lt;/p&gt;
&lt;p&gt;RIP: 0010:wake_q_add_safe+0x13/0x60
  Call Trace:
   __x64_sys_mq_timedsend+0x2a9/0x490
   do_syscall_64+0x80/0x680
   entry_SYSCALL_64_after_hwframe+0x44/0xa9
  RIP: 0033:0x7f5928e40343&lt;/p&gt;
&lt;p&gt;The race occurs as:&lt;/p&gt;
&lt;p&gt;1. do_mq_timedreceive calls wq_sleep with the address of `struct
   ext_wait_queue` on function stack (aliased as `ewq_addr` here) - it
   holds a valid `struct ext_wait_queue *` as long as the stack has not
   been overwritten.&lt;/p&gt;
&lt;p&gt;2. `ewq_addr` gets added to info-&amp;gt;e_wait_q[RECV].list in wq_add, and
   do_mq_timedsend receives it via wq_get_first_waiter(info, RECV) to call
   __pipelined_op.&lt;/p&gt;
&lt;p&gt;3. Sender calls __pipelined_op::smp_store_release(&amp;amp;this-&amp;gt;state,
   STATE_READY).  Here is where the race window begins.  (`this` is
   `ewq_addr`.)&lt;/p&gt;
&lt;p&gt;4. If the receiver wakes up now in do_mq_timedreceive::wq_sleep, it
   will see `state == STATE_READY` and break.&lt;/p&gt;
&lt;p&gt;5. do_mq_timedreceive returns, and `ewq_addr` is no longer guaranteed
   to be a `struct ext_wait_queue *` since it was on do_mq_timedreceive&amp;#39;s
   stack.  (Although the add…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2021-47069</guid>
    </item>
  </channel>
</rss>
