{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-37940","id":"CVE-2025-37940","title":"ftrace: Add cond_resched() to ftrace_graph_set_hash()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Add cond_resched() to ftrace_graph_set_hash()\n\nWhen the kernel contains a large number of functions that can be traced,\nthe loop in ftrace_graph_set_hash() may take a lot of time to execute.\nThis may trigger the softlockup watchdog.\n\nAdd cond_resched() within the loop to allow the kernel to remain\nresponsive even when pro","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Add cond_resched() to ftrace_graph_set_hash()\n\nWhen the kernel contains a large number of functions that can be traced,\nthe loop in ftrace_graph_set_hash() may take a lot of time to execute.\nThis may trigger the softlockup watchdog.\n\nAdd cond_resched() within the loop to allow the kernel to remain\nresponsive even when processing a large number of functions.\n\nThis matches the cond_resched() that is used in other locations of the\ncode that iterates over all functions that can be traced.","published":"2025-05-20T15:58:17.634Z","updated":"2026-11-07T02:30:42.177415642Z","reserved":"2025-04-16T04:51:23.971Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"e5b4ae6f01d4a510d5725eca7254519a1093920d","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"618655d54c5f8af5d57b77491d08c0f0ff77d114","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"dd38803c9088b848c6b56f4f6d7efc4497bfde61","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"8dd7d7280357596ba63dfdb4c1725d9dd24bd42a","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"5d336ac215e5c76e43ef4bca9ba699835e53e2fd","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"1fce9574b9d515bcb8a75379a8053e18602424e3","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"4429535acab750d963fdc3dfcc9e0eee42f4d599","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"72be43ff061a889c6ee648a330a42486cafa15a6","status":"affected","versionType":"git"},{"version":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","lessThan":"42ea22e754ba4f2b86f8760ca27f6f71da2d982c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","lessThan":"4.11","status":"unaffected","versionType":"semver"},{"version":"5.4.293","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.237","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.181","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.135","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.88","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.24","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.12","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14.3","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-667"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e5b4ae6f01d4a510d5725eca7254519a1093920d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/618655d54c5f8af5d57b77491d08c0f0ff77d114","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dd38803c9088b848c6b56f4f6d7efc4497bfde61","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8dd7d7280357596ba63dfdb4c1725d9dd24bd42a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5d336ac215e5c76e43ef4bca9ba699835e53e2fd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1fce9574b9d515bcb8a75379a8053e18602424e3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4429535acab750d963fdc3dfcc9e0eee42f4d599","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/72be43ff061a889c6ee648a330a42486cafa15a6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/42ea22e754ba4f2b86f8760ca27f6f71da2d982c","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37940.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37940","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00162,"epssPercentile":0.05507,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-37940","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37940","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-37940","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-37940","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}