CVE-2025-21898

ftrace: Avoid potential division by zero in function_stat_show()

State
Published
Severity
5.5 Medium
Published
Apr 1, 2025
Updated
May 23, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • f0629ee3922f10112584b1898491fecc74d98b3b to before 5b3d32f607f0478b414b16516cf27f9170cf66c8Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before ca381f60a3bb7cfaa618d73ca411610bd7fc3149Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before 3d738b53ed6cddb68e68c9874520a4bf846163b5Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before 992775227843c9376773784b8b362add44592ad7Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before 746cc474a95473591853927b3a9792a2d671155bAffected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before 9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6Affected
  • e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d to before a1a7eb89ca0b89dc1c326eeee2596f263291aca3Affected
  • c59e74104cfd7df3ca0b5f59f1baee9c8c28b9efAffected
  • 015f0fd0fcc338513f80044add27fa46cf71d217Affected
  • 1a2985af2a20b816a5cc41a2ddc1c4109ef6b9c6Affected
  • 7650b4b1df091815bbbbb837d308dd4154684f8aAffected
  • 010a7e846d4beaf34384c40ff18d5de10106d9b4Affected
  • 5.4.9 to before 5.4.291Affected
  • 3.16.83 to before 3.17Affected
  • 4.4.209 to before 4.5Affected
  • 4.9.209 to before 4.10Affected
  • 4.14.163 to before 4.15Affected
  • 4.19.94 to before 4.20Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.130 through 6.1.*Not affected
  • 6.6.81 through 6.6.*Not affected
  • 6.12.18 through 6.12.*Not affected
  • 6.13.6 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.