CVE-2025-37940 json
ftrace: Add cond_resched() to ftrace_graph_set_hash()
published 2025-05-20 17 mo ago modified 2026-11-05 3 d ago also EUVD-2025-15844
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
ftrace: Add cond_resched() to ftrace_graph_set_hash()
When the kernel contains a large number of functions that can be traced, the loop in ftrace_graph_set_hash() may take a lot of time to execute. This may trigger the softlockup watchdog.
Add cond_resched() within the loop to allow the kernel to remain responsive even when processing a large number of functions.
This matches the cond_resched() that is used in other locations of the code that iterates over all functions that can be traced.
Patch / fix
- Linux Linux 5.4.293, 5.10.237, 5.15.181, 6.1.135, 6.6.88, 6.12.24, 6.13.12, 6.14.3, 6.15
- linux Debian 12 6.1.135-1
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-37940
- linux Ubuntu 22.04 LTS 5.15.0-144.157
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1088.95
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1087.96
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1085.91
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-37940
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/e5b4ae6f01d4a510d5725eca7254519a1093920d commit
- git.kernel.org/stable/c/618655d54c5f8af5d57b77491d08c0f0ff77d114 commit
- git.kernel.org/stable/c/dd38803c9088b848c6b56f4f6d7efc4497bfde61 commit
- git.kernel.org/stable/c/8dd7d7280357596ba63dfdb4c1725d9dd24bd42a commit
- git.kernel.org/stable/c/5d336ac215e5c76e43ef4bca9ba699835e53e2fd commit
- git.kernel.org/stable/c/1fce9574b9d515bcb8a75379a8053e18602424e3 commit
- git.kernel.org/stable/c/4429535acab750d963fdc3dfcc9e0eee42f4d599 commit
- git.kernel.org/stable/c/72be43ff061a889c6ee648a330a42486cafa15a6 commit
- git.kernel.org/stable/c/42ea22e754ba4f2b86f8760ca27f6f71da2d982c commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-37940 updated cvss 5.5
kernel: ftrace: Add cond_resched() to ftrace_graph_set_hash()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-667 Improper Locking
- Technology feeds
References
-
git.kernel.org
/stable/c/e5b4ae6f01d4a510d5725eca7254519a1093920d
patch
-
git.kernel.org
/stable/c/618655d54c5f8af5d57b77491d08c0f0ff77d114
patch
-
git.kernel.org
/stable/c/dd38803c9088b848c6b56f4f6d7efc4497bfde61
patch
-
git.kernel.org
/stable/c/8dd7d7280357596ba63dfdb4c1725d9dd24bd42a
patch
-
git.kernel.org
/stable/c/5d336ac215e5c76e43ef4bca9ba699835e53e2fd
patch
-
git.kernel.org
/stable/c/1fce9574b9d515bcb8a75379a8053e18602424e3
patch
-
git.kernel.org
/stable/c/4429535acab750d963fdc3dfcc9e0eee42f4d599
patch
-
git.kernel.org
/stable/c/72be43ff061a889c6ee648a330a42486cafa15a6
patch
-
git.kernel.org
/stable/c/42ea22e754ba4f2b86f8760ca27f6f71da2d982c
patch
-
lists.debian.org
/debian-lts-announce/2025/05/msg00045.html
third-party-advisory
Sources
- CVE List CVE-2025-37940
- NVD CVE-2025-37940
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.