CVE-2025-38614
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| linux_kernel | linux | 6.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 |
| Linux | Linux | 2.6.38 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e |
| Linux | Linux | 2.6.38, 0, 5.15.190 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.6, 3.1.5, 3.1.7 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 6.17, 2.6.38, 2.6.37.3 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.150-174.273 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | 3.1.5, 3.1.7, 3.1.6 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.6, 3.1.7, 3.1.5 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | perf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.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
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html url
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html url
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html url
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url