← CVE Intelligence

CVE-2025-21898

ftrace: Avoid potential division by zero in function_stat_show() PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected f0629ee3922f10112584b1898491fecc74d98b3b before 5b3d32f607f0478b414b16516cf27f9170cf66c8; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before ca381f60a3bb7cfaa618d73ca411610bd7fc3149; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 3d738b53ed6cddb68e68c9874520a4bf846163b5; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 992775227843c9376773784b8b362add44592ad7; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 746cc474a95473591853927b3a9792a2d671155b; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6; affected e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before a1a7eb89ca0b89dc1c326eeee2596f263291aca3; affected c59e74104cfd7df3ca0b5f59f1baee9c8c28b9ef; affected 015f0fd0fcc338513f80044add27fa46cf71d217; affected 1a2985af2a20b816a5cc41a2ddc1c4109ef6b9c6; affected 7650b4b1df091815bbbbb837d308dd4154684f8a; affected 010a7e846d4beaf34384c40ff18d5de10106d9b4; affected 5.4.9 before 5.4.291; affected 3.16.83 before 3.17; affected 4.4.209 before 4.5; affected 4.9.209 before 4.10; affected 4.14.163 before 4.15; affected 4.19.94 before 4.20
Linux / Linuxaffected 5.5; unaffected 0 before 5.5; unaffected 5.4.291 through 5.4.*; unaffected 5.10.235 through 5.10.*; unaffected 5.15.179 through 5.15.*; unaffected 6.1.130 through 6.1.*; unaffected 6.6.81 through 6.6.*; unaffected 6.12.18 through 6.12.*; unaffected 6.13.6 through 6.13.*; unaffected 6.14 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.