{"id":"CVE-2025-37940","aliases":["CVE-2025-37940"],"related":[],"kind":"vulnerability","state":"published","title":"ftrace: Add cond_resched() to ftrace_graph_set_hash()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ftrace: Añadir cond_resched() a ftrace_graph_set_hash(). Cuando el kernel contiene una gran cantidad de funciones rastreables, el bucle en ftrace_graph_set_hash() puede tardar mucho en ejecutarse. Esto puede activar el mecanismo de vigilancia de bloqueo suave. Añadir cond_resched() dentro del bucle para que el kernel siga respondiendo incluso al procesar una gran cantidad de funciones. Esto coincide con el cond_resched() utilizado en otras partes del código que itera sobre todas las funciones rastreables.","source":"nvd"}],"published":"2025-05-20T15:58:17.634Z","modified":"2026-11-05T21:17:58.823Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"e5b4ae6f01d4a510d5725eca7254519a1093920d","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"618655d54c5f8af5d57b77491d08c0f0ff77d114","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"dd38803c9088b848c6b56f4f6d7efc4497bfde61","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"8dd7d7280357596ba63dfdb4c1725d9dd24bd42a","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"5d336ac215e5c76e43ef4bca9ba699835e53e2fd","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"1fce9574b9d515bcb8a75379a8053e18602424e3","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"4429535acab750d963fdc3dfcc9e0eee42f4d599","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"72be43ff061a889c6ee648a330a42486cafa15a6","status":"affected"},{"type":"git","introduced":"b9b0c831bed2682c2e3e9f5420fb6985549ef020","fixed":"42ea22e754ba4f2b86f8760ca27f6f71da2d982c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"5.4.293","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.237","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.135","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.88","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.24","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.12","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.3","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.11","fixed":"5.4.293"},{"status":"affected","introduced":"5.5","fixed":"5.10.237"},{"status":"affected","introduced":"5.11","fixed":"5.15.181"},{"status":"affected","introduced":"5.16","fixed":"6.1.135"},{"status":"affected","introduced":"6.2","fixed":"6.6.88"},{"status":"affected","introduced":"6.7","fixed":"6.12.24"},{"status":"affected","introduced":"6.13","fixed":"6.13.12"},{"status":"affected","introduced":"6.14","fixed":"6.14.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e5b4ae6f01d4a510d5725eca7254519a1093920d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/618655d54c5f8af5d57b77491d08c0f0ff77d114","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd38803c9088b848c6b56f4f6d7efc4497bfde61","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8dd7d7280357596ba63dfdb4c1725d9dd24bd42a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d336ac215e5c76e43ef4bca9ba699835e53e2fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1fce9574b9d515bcb8a75379a8053e18602424e3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4429535acab750d963fdc3dfcc9e0eee42f4d599","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/72be43ff061a889c6ee648a330a42486cafa15a6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42ea22e754ba4f2b86f8760ca27f6f71da2d982c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:45:26.480Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37940","url":"https://www.cve.org/CVERecord?id=CVE-2025-37940","licence":"CVE Terms of Use","modified":"2026-11-05T20:52:08.689Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37940","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37940","licence":"Public domain","modified":"2026-11-05T21:17:58.823Z"}],"updatedAt":"2026-11-25T22:58:58.298Z","epss":{"score":0.00163,"percentile":0.05707,"date":"2026-12-01T12:00:22.000Z"}}