CVE-2025-21898
JSON

5.5medium

ftrace: Avoid potential division by zero in function_stat_show()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f0629ee3922f10112584b1898491fecc74d98b3b before 5b3d32f607f0478b414b16516cf27f9170cf66c8, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before ca381f60a3bb7cfaa618d73ca411610bd7fc3149, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 3d738b53ed6cddb68e68c9874520a4bf846163b5, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 992775227843c9376773784b8b362add44592ad7, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 746cc474a95473591853927b3a9792a2d671155b, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before 9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6, from e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d before a1a7eb89ca0b89dc1c326eeee2596f263291aca3 and 12 more
Not affected: before 5.5, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.130 up to 6.1.*, from 6.6.81 up to 6.6.*
CVE List
linux linux_kernelfrom 3.16.83 before 3.17, from 4.4.206 before 4.5, from 4.9.209 before 4.10, from 4.14.163 before 4.15, from 4.19.94 before 4.20, from 5.4.9 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179 and 5 moreNVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-369

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ftrace: Evitar la posible división por cero en function_stat_show(). Comprueba si la expresión del denominador x * (x - 1) * 1000 mod {2^32, 2^64} produce cero y omite el cálculo de la desviación estándar en ese caso. Por ahora, no se debe preocupar el desbordamiento de rec->counter * rec->counter, ya que es probable que el desbordamiento de rec->time * rec->time ocurra antes.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21898 changed 2026-05-23CVE Terms of Use
NVDCVE-2025-21898 changed 2026-06-17Public domain