Junglewise Threat Intelligence

CVE-2025-38614: Linux Kernel uncontrolled recursion in eventpoll

CVE-2025-38614 · Severity: medium · CVSS 5.5 · Published 2025-08-19

Technologies: Linux Kernel, Siemens SIMATIC CN 4100, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability in the Linux kernel's event notification system (epoll) could allow a local user to crash the system. By creating complex, deeply nested structures of event monitors, an attacker can trigger excessive recursion that exhausts system resources. This results in a denial-of-service condition, impacting the availability of the affected device or server.

Technical details

An uncontrolled recursion vulnerability exists in the Linux kernel's eventpoll (epoll) implementation due to insufficient depth checks in ep_loop_check_proc(). While the kernel attempts to limit the nesting of epoll instances to EP_MAX_NESTS, the existing logic fails to account for upward paths in the graph and only considers a single path when multiple downward paths exist. A local attacker can exploit this by constructing a complex graph of epoll file descriptors that exceeds the intended recursion limits (tested up to a depth of ~500), potentially leading to a kernel stack overflow or denial of service. The fix introduces more robust tracking of subtree depths and upward traversal checks to strictly enforce nesting limits.

Affected products

  • Linux Linux Kernel v6.15 and earlier versions
  • Siemens SIMATIC CN 4100 < V5.0
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5

Timeline

  • 2025-07-11: patched: Initial patch submitted by Jann Horn
  • 2025-08-19: disclosed: CVE published

References

Related threats