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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-674
- **Published:** 2025-08-19T17:03:56.348Z
- **Modified:** 2026-11-10T13:17:47.313Z

## Who should check

- Anyone running Linux \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 71379495ab70eaba19224bd71b5b9b399eb85e04; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 1b13b033062824495554e836a1ff5f85ccf6b039; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 2a0c0c974bea9619c6f41794775ae4b97530e0e6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 7a2125962c42d5336ca0495a9ce4cb38a63e9161; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< ea5f97dbdcb1651581a22bd10afd2f0dd9dc11d6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 3542c90797bc3ab83ebab54b737d751cf3682036; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< f2e467a48287c868818085aa35389a224d226732; 8216e1a0d47cae06a75c42346f19dffe14e42d57; 28a92748aa4bc57d35e7b079498b0ac2e7610a37; 7eebcd4792c5a341559aed327b6afecbb1c46402; …
- Anyone running Linux 2.6.38

## 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 and fixed versions

- Linux: \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 71379495ab70eaba19224bd71b5b9b399eb85e04; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 1b13b033062824495554e836a1ff5f85ccf6b039; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 2a0c0c974bea9619c6f41794775ae4b97530e0e6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 7a2125962c42d5336ca0495a9ce4cb38a63e9161; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< ea5f97dbdcb1651581a22bd10afd2f0dd9dc11d6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 3542c90797bc3ab83ebab54b737d751cf3682036; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< f2e467a48287c868818085aa35389a224d226732; 8216e1a0d47cae06a75c42346f19dffe14e42d57; 28a92748aa4bc57d35e7b079498b0ac2e7610a37; 7eebcd4792c5a341559aed327b6afecbb1c46402; … (cvelist)
- Linux: 2.6.38 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38614. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38614.md
Affected: Linux >= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, < 71379495ab70eaba19224bd71b5b9b399eb85e04; >= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, < 1b13b033062824495554e836a1ff5f85ccf6b039; >= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, < 2a0c0c974bea9619c6f41794775ae4b97530e0e6; >= 22bacca48a1755f79b7e0f1…
Fixed in: Linux 71379495ab70eaba19224bd71b5b9b399eb85e04, Linux 1b13b033062824495554e836a1ff5f85ccf6b039, Linux 2a0c0c974bea9619c6f41794775ae4b97530e0e6, Linux 7a2125962c42d5336ca0495a9ce4cb38a63e9161, Linux 3542c90797bc3ab83ebab54b737d751cf3682036

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.
```

## FAQ

### Is CVE-2025-38614 being exploited?

There is no confirmed exploitation: CVE-2025-38614 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38614?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38614?

Linux \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 71379495ab70eaba19224bd71b5b9b399eb85e04; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 1b13b033062824495554e836a1ff5f85ccf6b039; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 2a0c0c974bea9619c6f41794775ae4b97530e0e6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 7a2125962c42d5336ca0495a9ce4cb38a63e9161; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< ea5f97dbdcb1651581a22bd10afd2f0dd9dc11d6; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< 3542c90797bc3ab83ebab54b737d751cf3682036; \>= 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e, \< f2e467a48287c868818085aa35389a224d226732; 8216e1a0d47cae06a75c42346f19dffe14e42d57; 28a92748aa4bc57d35e7b079498b0ac2e7610a37; 7eebcd4792c5a341559aed327b6afecbb1c46402; …; Linux 2.6.38.

### Is there a fix for CVE-2025-38614?

Yes. Fixed in Linux 71379495ab70eaba19224bd71b5b9b399eb85e04, Linux 1b13b033062824495554e836a1ff5f85ccf6b039, Linux 2a0c0c974bea9619c6f41794775ae4b97530e0e6, Linux 7a2125962c42d5336ca0495a9ce4cb38a63e9161, Linux 3542c90797bc3ab83ebab54b737d751cf3682036. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38614?

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.

## References

- patch: <https://git.kernel.org/stable/c/71379495ab70eaba19224bd71b5b9b399eb85e04>
- patch: <https://git.kernel.org/stable/c/1b13b033062824495554e836a1ff5f85ccf6b039>
- patch: <https://git.kernel.org/stable/c/2a0c0c974bea9619c6f41794775ae4b97530e0e6>
- patch: <https://git.kernel.org/stable/c/7a2125962c42d5336ca0495a9ce4cb38a63e9161>
- patch: <https://git.kernel.org/stable/c/ea5f97dbdcb1651581a22bd10afd2f0dd9dc11d6>
- patch: <https://git.kernel.org/stable/c/3542c90797bc3ab83ebab54b737d751cf3682036>
- patch: <https://git.kernel.org/stable/c/f2e467a48287c868818085aa35389a224d226732>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38614>

HTML: <https://flawdb.com/CVE-2025-38614> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38614>
