VDB

CVE-2025-38614

CVE-2025-38614 PUBLISHED CVSS 7.8 HIGH

eventpoll: Fix semi-unbounded recursion

Reported by linux · Published August 19, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-develAmazon Linux1:6.12.46-66.121.amzn2023
kernel-modules-extraAmazon Linux1:6.1.150-174.273.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.46-66.121.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.150-174.273.amzn2023
kernel-develAmazon Linux1:6.1.150-174.273.amzn2023
linux_kernellinux6.16.1, 6.15.11, 6.12.43, 6.6.103, 6.1.149, 5.15.190, 2.6.38, 2.6.36, 2.6.35, 2.6.34, 2.6.33
LinuxLinux2.6.38

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e
LinuxLinux2.6.38, 0, 5.15.190
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.6, 3.1.5, 3.1.7
amazon:2023kernel6.12-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-devel0
LinuxLinux6.17, 2.6.38, 2.6.37.3
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.150-174.2730
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.5, 3.1.7, 3.1.6
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.6, 3.1.7, 3.1.5
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf0
amazon:2023perf0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.5, 3.1.6

…and 21 more

Timeline

  • Aug 19, 2025 CVE Published
  • Aug 20, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (18 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (206 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (230 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38614
vulnetix vdb fixes CVE-2025-38614

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38614/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›