CVE-2025-37940

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37940
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37940.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-37940
Downstream
Published
2025-05-20T16:15:31Z
Modified
2025-08-09T19:01:28Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

ftrace: Add condresched() to ftracegraphsethash()

When the kernel contains a large number of functions that can be traced, the loop in ftracegraphset_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.

References

Affected packages