# ftrace: Add cond_resched() to ftrace_graph_set_hash()

CVE record · `CVE-2025-37940`

- **Identifiers:** `CVE-2025-37940`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 20 May 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 20 May 2025, 15:58 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before e5b4ae6f01d4a510d5725eca7254519a1093920d` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 618655d54c5f8af5d57b77491d08c0f0ff77d114` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before dd38803c9088b848c6b56f4f6d7efc4497bfde61` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 8dd7d7280357596ba63dfdb4c1725d9dd24bd42a` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 5d336ac215e5c76e43ef4bca9ba699835e53e2fd` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 1fce9574b9d515bcb8a75379a8053e18602424e3` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 4429535acab750d963fdc3dfcc9e0eee42f4d599` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 72be43ff061a889c6ee648a330a42486cafa15a6` (git)
  - affected: `b9b0c831bed2682c2e3e9f5420fb6985549ef020 to before 42ea22e754ba4f2b86f8760ca27f6f71da2d982c` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.11`
  - unaffected: `before 4.11` (semver)
  - unaffected: `5.4.293 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.237 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.181 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.135 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.88 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.24 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.12 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14.3 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel from version 4.11 until the fixes is affected. On kernels with many traceable functions, the loop in ftrace_graph_set_hash() can run long enough to trigger the softlockup watchdog, and the source gives few details on who can trigger this. Upgrade to 5.4.293, 5.10.237, 5.15.181, 6.1.135 or a later release in those series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 5th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 20 May 2025, 15:58 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-37940)
- 20 May 2025, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-37940)

## Sources

- [CVE List: CVE-2025-37940](https://www.cve.org/CVERecord?id=CVE-2025-37940)
- [NVD: CVE-2025-37940](https://nvd.nist.gov/vuln/detail/CVE-2025-37940)

### References from the CNA

- <https://git.kernel.org/stable/c/e5b4ae6f01d4a510d5725eca7254519a1093920d>
- <https://git.kernel.org/stable/c/618655d54c5f8af5d57b77491d08c0f0ff77d114>
- <https://git.kernel.org/stable/c/dd38803c9088b848c6b56f4f6d7efc4497bfde61>
- <https://git.kernel.org/stable/c/8dd7d7280357596ba63dfdb4c1725d9dd24bd42a>
- <https://git.kernel.org/stable/c/5d336ac215e5c76e43ef4bca9ba699835e53e2fd>
- <https://git.kernel.org/stable/c/1fce9574b9d515bcb8a75379a8053e18602424e3>
- <https://git.kernel.org/stable/c/4429535acab750d963fdc3dfcc9e0eee42f4d599>
- <https://git.kernel.org/stable/c/72be43ff061a889c6ee648a330a42486cafa15a6>
- <https://git.kernel.org/stable/c/42ea22e754ba4f2b86f8760ca27f6f71da2d982c>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-37940>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-37940/>. Everything for agents: <https://agentprime.io/llms.txt>.
