Bug 2368522 (CVE-2025-37940) - CVE-2025-37940 kernel: ftrace: Add cond_resched() to ftrace_graph_set_hash()
Summary: CVE-2025-37940 kernel: ftrace: Add cond_resched() to ftrace_graph_set_hash()
Keywords:
Status: NEW
Alias: CVE-2025-37940
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-26 07:03 UTC by OSIDB Bzimport
Modified: 2025-06-11 14:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-26 07:03:53 UTC
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.

Comment 1 Avinash Hanwate 2025-05-26 11:50:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025052028-CVE-2025-37940-37d1@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.