CVE-2025-37940

ftrace: Add cond_resched() to ftrace_graph_set_hash()

published May 20, 2025

CVSS
—
EPSS
0%
Percentile
5.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00162 · 5.1th percentile
Published
2025-05-20T15:58Z
EPSS history
Timeline
  • 20 MAY 15:58Z
    ftrace: Add cond_resched() to ftrace_graph_set_hash()
    cvelistv5