CVE-2025-38017
fs/eventpoll: fix endless busy loop after timeout has expired
Mitigation
- Upgrade Linux to 6.14.8 or later.
Who should check
- Anyone running Linux >= 99a0ad16dfd114a429df665065dcc576dad743c0, < 7631dca012593c95d36199082546a24a0058fc50; >= 0a65bc27bd645894175c059397b4916e31955fb2, < d9ec73301099ec5975505e1c3effbe768bab9490
- Anyone running Linux >= 6.14.4, < 6.14.8
Vulnerability facts
- Affected
- Linux >= 99a0ad16dfd114a429df665065dcc576dad743c0, < 7631dca012593c95d36199082546a24a0058fc50; >= 0a65bc27bd645894175c059397b4916e31955fb2, < d9ec73301099ec5975505e1c3effbe768bab9490; Linux >= 6.14.4, < 6.14.8
- Fixed in
- Linux 7631dca012593c95d36199082546a24a0058fc50, Linux 6.14.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: fs/eventpoll: fix endless busy loop after timeout has expired After commit 0a65bc27bd64 ("eventpoll: Set epoll timeout if it's in the future"), the following program would immediately enter a busy loop in the kernel: ``` int main() { int e = epoll_create1(0); struct epoll_event event = {.events = EPOLLIN}; epoll_ctl(e, EPOLL_CTL_ADD, 0, &event); const struct timespec timeout = {.tv_nsec = 1}; epoll_pwait2(e, &event, 1, &timeout, 0); } ``` 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. When the timeout has expired, we don'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. brauner: Note that there was an earlier fix by Joe Damato in response to my bug report in [1].
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38017. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38017.md Affected: Linux >= 99a0ad16dfd114a429df665065dcc576dad743c0, < 7631dca012593c95d36199082546a24a0058fc50; >= 0a65bc27bd645894175c059397b4916e31955fb2, < d9ec73301099ec5975505e1c3effbe768bab9490; Linux >= 6.14.4, < 6.14.8 Fixed in: Linux 7631dca012593c95d36199082546a24a0058fc50, Linux 6.14.8 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-38017 being exploited?
There is no confirmed exploitation: CVE-2025-38017 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38017?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38017?
Linux >= 99a0ad16dfd114a429df665065dcc576dad743c0, < 7631dca012593c95d36199082546a24a0058fc50; >= 0a65bc27bd645894175c059397b4916e31955fb2, < d9ec73301099ec5975505e1c3effbe768bab9490; Linux >= 6.14.4, < 6.14.8.
Is there a fix for CVE-2025-38017?
Yes. Fixed in Linux 7631dca012593c95d36199082546a24a0058fc50, Linux 6.14.8. Upgrade Linux to 6.14.8 or later.
How do I check if I'm affected by CVE-2025-38017?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.