What’s Vulnerable › Vulnerabilities

CVE-2025-21898: ftrace: Avoid potential division by zero in function_stat_show()

Description

In the Linux kernel, the following vulnerability has been resolved: ftrace: Avoid potential division by zero in function_stat_show() Check whether denominator expression x * (x - 1) * 1000 mod {2^32, 2^64} produce zero and skip stddev computation in that case. For now don't care about rec->counter * rec->counter overflow because rec->time * rec->time overflow will likely happen earlier.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 3.17, 4.10, 4.15, 4.20. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21898 or the next vulnerability affects your stack