CVE-2025-21898

ftrace: Avoid potential division by zero in function_stat_show()

Medium · published April 1, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
12.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00226 · 12.6th percentile
Published
2025-04-01T15:26Z
EPSS history
Timeline
  • 01 APR 15:26Z
    ftrace: Avoid potential division by zero in function_stat_show()
    cvelistv5