CVE-2025-37940

NameCVE-2025-37940
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4193-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bullseye5.10.223-1vulnerable
bullseye (security)5.10.237-1fixed
bookworm6.1.137-1fixed
bookworm (security)6.1.140-1fixed
trixie6.12.27-1fixed
sid6.12.30-1fixed
linux-6.1 (PTS)bullseye (security)6.1.137-1~deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcebullseye5.10.237-1
linuxsourcebookworm6.1.135-1
linuxsource(unstable)6.12.25-1
linux-6.1sourcebullseye6.1.137-1~deb11u1DLA-4193-1

Notes

https://git.kernel.org/linus/42ea22e754ba4f2b86f8760ca27f6f71da2d982c (6.15-rc1)

Search for package or bug name: Reporting problems