<?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>Thu, 01 Oct 2026 13:53:24 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38017 — fs/eventpoll: fix endless busy loop after timeout has expired</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38017</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;fs/eventpoll: fix endless busy loop after timeout has expired&lt;/p&gt;
&lt;p&gt;After commit 0a65bc27bd64 (&amp;#34;eventpoll: Set epoll timeout if it&amp;#39;s in
the future&amp;#34;), the following program would immediately enter a busy
loop in the kernel:&lt;/p&gt;
&lt;p&gt;```
int main() {
  int e = epoll_create1(0);
  struct epoll_event event = {.events = EPOLLIN};
  epoll_ctl(e, EPOLL_CTL_ADD, 0, &amp;amp;event);
  const struct timespec timeout = {.tv_nsec = 1};
  epoll_pwait2(e, &amp;amp;event, 1, &amp;amp;timeout, 0);
}
```&lt;/p&gt;
&lt;p&gt;This happens because the given (non-zero) timeout of 1 nanosecond
usually expires before ep_poll() is entered and then
ep_schedule_timeout() returns false, but `timed_out` is never set
because the code line that sets it is skipped.  This quickly turns
into a soft lockup, RCU stalls and deadlocks, inflicting severe
headaches to the whole system.&lt;/p&gt;
&lt;p&gt;When the timeout has expired, we don&amp;#39;t need to schedule a hrtimer, but
we should set the `timed_out` variable.  Therefore, I suggest moving
the ep_schedule_timeout() check into the `timed_out` expression
instead of skipping it.&lt;/p&gt;
&lt;p&gt;brauner: Note that there was an earlier fix by Joe Damato in response to
my bug report in [1].&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;fs/eventpoll: fix endless busy loop after timeout has expired&lt;/p&gt;
&lt;p&gt;After commit 0a65bc27bd64 (&amp;#34;eventpoll: Set epoll timeout if it&amp;#39;s in
the future&amp;#34;), the following program would immediately enter a busy
loop in the kernel:&lt;/p&gt;
&lt;p&gt;```
int main() {
  int e = epoll_create1(0);
  struct epoll_event event = {.events = EPOLLIN};
  epoll_ctl(e, EPOLL_CTL_ADD, 0, &amp;amp;event);
  const struct timespec timeout = {.tv_nsec = 1};
  epoll_pwait2(e, &amp;amp;event, 1, &amp;amp;timeout, 0);
}
```&lt;/p&gt;
&lt;p&gt;This happens because the given (non-zero) timeout of 1 nanosecond
usually expires before ep_poll() is entered and then
ep_schedule_timeout() returns false, but `timed_out` is never set
because the code line that sets it is skipped.  This quickly turns
into a soft lockup, RCU stalls and deadlocks, inflicting severe
headaches to the whole system.&lt;/p&gt;
&lt;p&gt;When the timeout has expired, we don&amp;#39;t need to schedule a hrtimer, but
we should set the `timed_out` variable.  Therefore, I suggest moving
the ep_schedule_timeout() check into the `timed_out` expression
instead of skipping it.&lt;/p&gt;
&lt;p&gt;brauner: Note that there was an earlier fix by Joe Damato in response to
my bug report in [1].&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38017</guid>
    </item>
  </channel>
</rss>
