<?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>Mon, 05 Oct 2026 16:23:35 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38349 — eventpoll: don't decrement ep refcount while still holding the ep mutex</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38349</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;eventpoll: don&amp;#39;t decrement ep refcount while still holding the ep mutex&lt;/p&gt;
&lt;p&gt;Jann Horn points out that epoll is decrementing the ep refcount and then
doing a&lt;/p&gt;
&lt;p&gt;mutex_unlock(&amp;amp;ep-&amp;gt;mtx);&lt;/p&gt;
&lt;p&gt;afterwards. That&amp;#39;s very wrong, because it can lead to a use-after-free.&lt;/p&gt;
&lt;p&gt;That pattern is actually fine for the very last reference, because the
code in question will delay the actual call to &amp;#34;ep_free(ep)&amp;#34; until after
it has unlocked the mutex.&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s wrong for the much subtler &amp;#34;next to last&amp;#34; case when somebody
*else* may also be dropping their reference and free the ep while we&amp;#39;re
still using the mutex.&lt;/p&gt;
&lt;p&gt;Note that this is true even if that other user is also using the same ep
mutex: mutexes, unlike spinlocks, can not be used for object ownership,
even if they guarantee mutual exclusion.&lt;/p&gt;
&lt;p&gt;A mutex &amp;#34;unlock&amp;#34; operation is not atomic, and as one user is still
accessing the mutex as part of unlocking it, another user can come in
and get the now released mutex and free the data structure while the
first user is still cleaning up.&lt;/p&gt;
&lt;p&gt;See our mutex documentation in Documentation/locking/mutex-design.rst,
in particular the section [1] about semantics:&lt;/p&gt;
&lt;p&gt;&amp;#34;mutex_unlock() may access the mutex structure even after it has
	 internally released the lock already - so it&amp;#39;s not safe for
	 another context to acquire the mutex and assume that the
	 mutex_unlock() context is not using the structure anymore&amp;#34;&lt;/p&gt;
&lt;p&gt;So if we drop our ep ref before the mute…&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;eventpoll: don&amp;#39;t decrement ep refcount while still holding the ep mutex&lt;/p&gt;
&lt;p&gt;Jann Horn points out that epoll is decrementing the ep refcount and then
doing a&lt;/p&gt;
&lt;p&gt;mutex_unlock(&amp;amp;ep-&amp;gt;mtx);&lt;/p&gt;
&lt;p&gt;afterwards. That&amp;#39;s very wrong, because it can lead to a use-after-free.&lt;/p&gt;
&lt;p&gt;That pattern is actually fine for the very last reference, because the
code in question will delay the actual call to &amp;#34;ep_free(ep)&amp;#34; until after
it has unlocked the mutex.&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s wrong for the much subtler &amp;#34;next to last&amp;#34; case when somebody
*else* may also be dropping their reference and free the ep while we&amp;#39;re
still using the mutex.&lt;/p&gt;
&lt;p&gt;Note that this is true even if that other user is also using the same ep
mutex: mutexes, unlike spinlocks, can not be used for object ownership,
even if they guarantee mutual exclusion.&lt;/p&gt;
&lt;p&gt;A mutex &amp;#34;unlock&amp;#34; operation is not atomic, and as one user is still
accessing the mutex as part of unlocking it, another user can come in
and get the now released mutex and free the data structure while the
first user is still cleaning up.&lt;/p&gt;
&lt;p&gt;See our mutex documentation in Documentation/locking/mutex-design.rst,
in particular the section [1] about semantics:&lt;/p&gt;
&lt;p&gt;&amp;#34;mutex_unlock() may access the mutex structure even after it has
	 internally released the lock already - so it&amp;#39;s not safe for
	 another context to acquire the mutex and assume that the
	 mutex_unlock() context is not using the structure anymore&amp;#34;&lt;/p&gt;
&lt;p&gt;So if we drop our ep ref before the mute…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38349</guid>
    </item>
  </channel>
</rss>
