CVE-2025-21898
Linux Kernel ftrace Division by Zero Vulnerability
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.
INFO
Published Date :
April 1, 2025, 4:15 p.m.
Last Modified :
April 15, 2025, 4:24 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-21898
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-21898
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-21898
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Apr. 15, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-369 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16.83 up to (excluding) 3.17 *cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.179 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.235 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.4.206 up to (excluding) 4.5 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.9.209 up to (excluding) 4.10 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.14.163 up to (excluding) 4.15 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.19.94 up to (excluding) 4.20 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.4.9 up to (excluding) 5.4.291 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.130 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.81 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.13.6 *cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/746cc474a95473591853927b3a9792a2d671155b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/992775227843c9376773784b8b362add44592ad7 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 01, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5 Added Reference https://git.kernel.org/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8 Added Reference https://git.kernel.org/stable/c/746cc474a95473591853927b3a9792a2d671155b Added Reference https://git.kernel.org/stable/c/992775227843c9376773784b8b362add44592ad7 Added Reference https://git.kernel.org/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6 Added Reference https://git.kernel.org/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3 Added Reference https://git.kernel.org/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149 Added Reference https://git.kernel.org/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-21898
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-21898
weaknesses.