# CVE-2025-21898: ftrace: Avoid potential division by zero in function_stat_show()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-04-01T15:26:50.211Z
- Modified: 2026-06-17T08:44:33.520Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; c59e74104cfd7df3ca0b5f59f1baee9c8c28b9ef; 015f0fd0fcc338513f80044add27fa46cf71d217; 1a2985af2a20b816a5cc41a2ddc1c4109ef6b9c6; 7650b4b1df091815bbbbb837d308dd4154684f8a; and 8 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.*; from 6.12.18 up to 6.12.*; from 6.13.6 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 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; from 5.16 before 6.1.130; from 6.2 before 6.6.81; from 6.7 before 6.12.18; from 6.13 before 6.13.6; and 1 more

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8> (patch)
- <https://git.kernel.org/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149> (patch)
- <https://git.kernel.org/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5> (patch)
- <https://git.kernel.org/stable/c/992775227843c9376773784b8b362add44592ad7> (patch)
- <https://git.kernel.org/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3> (patch)
- <https://git.kernel.org/stable/c/746cc474a95473591853927b3a9792a2d671155b> (patch)
- <https://git.kernel.org/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6> (patch)
- <https://git.kernel.org/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-21898](https://www.cve.org/CVERecord?id=CVE-2025-21898), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-21898](https://nvd.nist.gov/vuln/detail/CVE-2025-21898), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21898 · Whole record: https://cve.day/CVE-2025-21898.json · Rebuilt by cve.day 2026-11-25T22:58:55.875Z
