CVE-2025-21898

Source
https://cve.org/CVERecord?id=CVE-2025-21898
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21898.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21898
Downstream
Related
Published
2025-04-01T15:26:50.211Z
Modified
2026-03-11T07:51:11.995334Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
ftrace: Avoid potential division by zero in function_stat_show()
Details

In the Linux kernel, the following vulnerability has been resolved:

ftrace: Avoid potential division by zero in functionstatshow()

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21898.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f0629ee3922f10112584b1898491fecc74d98b3b
Fixed
5b3d32f607f0478b414b16516cf27f9170cf66c8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d
Fixed
ca381f60a3bb7cfaa618d73ca411610bd7fc3149
Fixed
3d738b53ed6cddb68e68c9874520a4bf846163b5
Fixed
992775227843c9376773784b8b362add44592ad7
Fixed
f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3
Fixed
746cc474a95473591853927b3a9792a2d671155b
Fixed
9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6
Fixed
a1a7eb89ca0b89dc1c326eeee2596f263291aca3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
c59e74104cfd7df3ca0b5f59f1baee9c8c28b9ef
Last affected
015f0fd0fcc338513f80044add27fa46cf71d217
Last affected
1a2985af2a20b816a5cc41a2ddc1c4109ef6b9c6
Last affected
7650b4b1df091815bbbbb837d308dd4154684f8a
Last affected
010a7e846d4beaf34384c40ff18d5de10106d9b4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21898.json"