Vulnerability · Published Aug 19, 2025 · Assigned by Linux

CVE-2025-38614eventpoll: Fix semi-unbounded recursion

High 7.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 91.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: eventpoll: Fix semi-unbounded recursion Ensure that epoll instances can never form a graph deeper than EP_MAX_NESTS+1 links. Currently, ep_loop_check_proc() ensures that the graph is loop-free and does some recursion depth checks, but those recursion depth checks don't limit the depth of the resulting tree for two reasons: - They don't look upwards in the tree. - If there are multiple downwards paths of different lengths, only one of the paths is actually considered for the depth check since commit 28d82dc1c4ed ("epoll: limit paths"). Essentially, the current recursion depth check in ep_loop_check_proc() just serves to prevent it from recursing too deeply while checking for loops. A more thorough check is done in reverse_path_check() after the new graph edge has already been created; this checks, among other things, that no paths going upwards from any non-epoll file with a length of more than 5 edges exist. However, this check does not apply to non-epoll files. As a result, it is possible to recurse to a depth of at least roughly 500, tested on v6.15. (I am unsure if deeper recursion is possible; and this may have changed with commit 8c44dac8add7 ("eventpoll: Fix priority inversion problem").) To fix it: 1. In ep_loop_check_proc(), note the subtree depth of each visited node, and use subtree depths for the total depth calculation even when a subtree has already been visited. 2. Add ep_get_upwards_depth_proc() for similarly determining the maximum depth of an upwards walk. 3. In ep_loop_check(), use these values to limit the total path length between epoll nodes to EP_MAX_NESTS edges.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9kernel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-devel-matched5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-64k-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:10kernel-abi-stablelists6.12.0-55.40.1.el10_0ALSA-2025:18318
AlmaLinux:9kernel-abi-stablelists5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-cross-headers5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-devel-matched5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-debug-uki-virt5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-devel-matched5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:10kernel-doc6.12.0-55.40.1.el10_0ALSA-2025:18318
AlmaLinux:9kernel-doc5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-headers5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-debug-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-64k-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-kvm5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-kvm5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-rt-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-tools5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-tools-libs5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-tools-libs-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-uki-virt5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-uki-virt-addons5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-devel5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-modules5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9libperf5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9perf5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9python3-perf5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9rtla5.14.0-570.52.1.el9_6ALSA-2025:17760
AlmaLinux:9rv5.14.0-570.52.1.el9_6ALSA-2025:17760
Debian:12linux6.1.153-1DSA-6009-1
Debian:12linux6.1.153-1DEBIAN-CVE-2025-38614
Debian:13linux6.12.43-1DEBIAN-CVE-2025-38614
Debian:14linux6.16.3-1DEBIAN-CVE-2025-38614
Rocky Linux:10kernel0:6.12.0-55.40.1.el10_0RLSA-2025:18318
Rocky Linux:9kernel0:5.14.0-570.52.1.el9_6RLSA-2025:17760
Ubuntu:22.04:LTSlinux5.15.0-163.173UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux6.8.0-100.100UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-aws5.15.0-1097.104UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-aws6.8.0-1046.49UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-aws-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1046.49~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure5.15.0-1101.110UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure6.8.0-1046.52UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1102.111.1UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-fde6.8.0-1046.53UBUNTU-CVE-2025-38614
Ubuntu:25.10linux-azure-fdeno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-fde-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-azure-fde-6.86.8.0-1046.53~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-nvidiano fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-azure-nvidia-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gcp5.15.0-1097.106UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-gcp6.8.0-1047.50UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-gcp-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-gcp-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1047.50~22.04.2UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gke5.15.0-1093.99UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-gke6.8.0-1043.48UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1080.88UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1030.33UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-hwe-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-hwe-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-100.100~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-ibm5.15.0-1091.94UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-ibm6.8.0-1044.44UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1044.44~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-intelno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1092.98UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-kvm5.15.0-1089.94UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-163.173UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-100.100.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-lowlatency-hwe-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-100.100.1~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1092.93UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1046.49UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-nvidia-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1046.49~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1046.49.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1049.49UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-nvidia-tegra6.8.0-1020.20UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1038.38UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-oem-6.11no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-oem-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-oem-6.8no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oracle5.15.0-1094.100UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-oracle6.8.0-1043.44UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-oracle-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1043.44~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-raspi5.15.0-1091.94UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-raspi6.8.0-1047.51UBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-riscv-6.14no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-100.100~22.04.1UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2025-38614
Ubuntu:24.04:LTSlinux-xilinx6.8.0-1023.24UBUNTU-CVE-2025-38614
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1061.65UBUNTU-CVE-2025-38614

Affected products (as reported)

VendorProductVersions
Linux Linux 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before 71379495ab70eaba19224bd71b5b9b399eb85e0422bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before 1b13b033062824495554e836a1ff5f85ccf6b03922bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before 2a0c0c974bea9619c6f41794775ae4b97530e0e622bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before 7a2125962c42d5336ca0495a9ce4cb38a63e916122bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before ea5f97dbdcb1651581a22bd10afd2f0dd9dc11d622bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before 3542c90797bc3ab83ebab54b737d751cf368203622bacca48a1755f79b7e0f192ddb9fbb7fc6e64e – before f2e467a48287c868818085aa35389a224d2267328216e1a0d47cae06a75c42346f19dffe14e42d57
Linux Linux 2.6.38

References