<?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>Sun, 04 Oct 2026 12:35:03 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47505 — aio: fix use-after-free due to missing POLLFREE handling</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2021-47505</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;aio: fix use-after-free due to missing POLLFREE handling&lt;/p&gt;
&lt;p&gt;signalfd_poll() and binder_poll() are special in that they use a
waitqueue whose lifetime is the current task, rather than the struct
file as is normally the case.  This is okay for blocking polls, since a
blocking poll occurs within one task; however, non-blocking polls
require another solution.  This solution is for the queue to be cleared
before it is freed, by sending a POLLFREE notification to all waiters.&lt;/p&gt;
&lt;p&gt;Unfortunately, only eventpoll handles POLLFREE.  A second type of
non-blocking poll, aio poll, was added in kernel v4.18, and it doesn&amp;#39;t
handle POLLFREE.  This allows a use-after-free to occur if a signalfd or
binder fd is polled with aio poll, and the waitqueue gets freed.&lt;/p&gt;
&lt;p&gt;Fix this by making aio poll handle POLLFREE.&lt;/p&gt;
&lt;p&gt;A patch by Ramji Jiyani &amp;lt;ramjiyani@google.com&amp;gt;
(https://lore.kernel.org/r/20211027011834.2497484-1-ramjiyani@google.com)
tried to do this by making aio_poll_wake() always complete the request
inline if POLLFREE is seen.  However, that solution had two bugs.
First, it introduced a deadlock, as it unconditionally locked the aio
context while holding the waitqueue lock, which inverts the normal
locking order.  Second, it didn&amp;#39;t consider that POLLFREE notifications
are missed while the request has been temporarily de-queued.&lt;/p&gt;
&lt;p&gt;The second problem was solved by my previous patch.  This patch then
properly fixes the use-after-free by…&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;aio: fix use-after-free due to missing POLLFREE handling&lt;/p&gt;
&lt;p&gt;signalfd_poll() and binder_poll() are special in that they use a
waitqueue whose lifetime is the current task, rather than the struct
file as is normally the case.  This is okay for blocking polls, since a
blocking poll occurs within one task; however, non-blocking polls
require another solution.  This solution is for the queue to be cleared
before it is freed, by sending a POLLFREE notification to all waiters.&lt;/p&gt;
&lt;p&gt;Unfortunately, only eventpoll handles POLLFREE.  A second type of
non-blocking poll, aio poll, was added in kernel v4.18, and it doesn&amp;#39;t
handle POLLFREE.  This allows a use-after-free to occur if a signalfd or
binder fd is polled with aio poll, and the waitqueue gets freed.&lt;/p&gt;
&lt;p&gt;Fix this by making aio poll handle POLLFREE.&lt;/p&gt;
&lt;p&gt;A patch by Ramji Jiyani &amp;lt;ramjiyani@google.com&amp;gt;
(https://lore.kernel.org/r/20211027011834.2497484-1-ramjiyani@google.com)
tried to do this by making aio_poll_wake() always complete the request
inline if POLLFREE is seen.  However, that solution had two bugs.
First, it introduced a deadlock, as it unconditionally locked the aio
context while holding the waitqueue lock, which inverts the normal
locking order.  Second, it didn&amp;#39;t consider that POLLFREE notifications
are missed while the request has been temporarily de-queued.&lt;/p&gt;
&lt;p&gt;The second problem was solved by my previous patch.  This patch then
properly fixes the use-after-free by…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2021-47505</guid>
    </item>
  </channel>
</rss>
