{"id":"CVE-2025-21898","summary":"ftrace: Avoid potential division by zero in function_stat_show()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Avoid potential division by zero in function_stat_show()\n\nCheck whether denominator expression x * (x - 1) * 1000 mod {2^32, 2^64}\nproduce zero and skip stddev computation in that case.\n\nFor now don't care about rec-\u003ecounter * rec-\u003ecounter overflow because\nrec-\u003etime * rec-\u003etime overflow will likely happen earlier.","modified":"2026-04-02T12:45:16.650855Z","published":"2025-04-01T15:26:50.211Z","related":["SUSE-SU-2025:02249-1","SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1","SUSE-SU-2025:02334-1","SUSE-SU-2025:02335-1","SUSE-SU-2025:02538-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:20475-1","SUSE-SU-2025:20483-1","SUSE-SU-2025:20493-1","SUSE-SU-2025:20498-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21898.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/746cc474a95473591853927b3a9792a2d671155b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/992775227843c9376773784b8b362add44592ad7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21898.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21898"},{"type":"PACKAGE","url":"https://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"},{"last_affected":"c59e74104cfd7df3ca0b5f59f1baee9c8c28b9ef"},{"last_affected":"015f0fd0fcc338513f80044add27fa46cf71d217"},{"last_affected":"1a2985af2a20b816a5cc41a2ddc1c4109ef6b9c6"},{"last_affected":"7650b4b1df091815bbbbb837d308dd4154684f8a"},{"last_affected":"010a7e846d4beaf34384c40ff18d5de10106d9b4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21898.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}