« List of all CVEs

CVE-2025-37940

ftrace: Add cond_resched() to ftrace_graph_set_hash()

Published: 5/20/2025 Last updated: 5/11/2026 Reserved: 4/16/2025

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.

CNA assigner: Linux (416baaa9-dc9f-4396-8d5f-8c081fb06d67) Requested by: n/a

Opam packages affected (29)

albatross cdrom conf-bpftool conf-libbpf conf-linux-libc-dev core core_unix hvsock mirage-block-unix mm ocaml-probes ortools_solvers orun rawlink rawlink-eio rawlink-lwt restricted shell solo5 solo5-bindings-hvt solo5-bindings-spt solo5-cross-aarch64 solo5-kernel-ukvm tracy-client tuntap uring vhd-format vhd-format-lwt xapi-stdext-unix

Products affected (4)

Product Vendor Version
Linux Linux 4.5.2 on Windows Server 2012 R2 (Server Core installation)
Linux Linux 4.6 on Windows Server 2008 for 32-bit Systems Service Pack 2
Linux Linux 2012 (Core installation)
Linux Linux 2008 for x64-based Systems Service Pack 2

References (20)