CVE-2025-21898 Details
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.
A vulnerability in the Linux kernel's ftrace component could lead to a division by zero error in the function_stat_show() routine. This issue arises when the denominator, calculated as x * (x - 1) * 1000 modulo {2^32, 2^64}, equals zero, causing the standard deviation computation to be skipped. The vulnerability does not currently account for potential overflows in the 'counter' field of the 'rec' structure, as an overflow in the 'time' field is expected to occur first.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-369 | Divide By Zero | [email protected] |
| CWE-369 | Divide By Zero | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.16.83, < 3.17 >= 4.4.206, < 4.5 >= 4.9.209, < 4.10 >= 4.14.163, < 4.15 >= 4.19.94, < 4.20 >= 5.4.9, < 5.4.291 >= 5.5, < 5.10.235 >= 5.11, < 5.15.179 >= 5.16, < 6.1.130 >= 6.2, < 6.6.81 >= 6.7, < 6.12.18 >= 6.13, < 6.13.6 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 15, 2025 | Initial Analysis | [email protected] |
| Apr 1, 2025 | New CVE Received | kernel.org |