CVE-2025-21898 json
ftrace: Avoid potential division by zero in function_stat_show()
published 2025-04-01 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-9423
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 3.17, 4.5, 4.10, 4.15, 4.20, 5.4.291, 5.10.235, 5.15.179, 6.1.130, 6.6.81, 6.12.18, 6.13.6, 6.14
- linux Debian 12 6.1.133-1
- linux Debian 14, Debian 13 6.12.19-1
debian advisories DEBIAN-CVE-2025-21898
- linux Ubuntu 20.04 LTS 5.4.0-216.236
- linux Ubuntu 22.04 LTS 5.15.0-140.150
- linux Ubuntu 24.04 LTS 6.8.0-84.84
- linux-aws Ubuntu 20.04 LTS 5.4.0-1146.156
- linux-aws Ubuntu 22.04 LTS 5.15.0-1084.91
- linux-aws Ubuntu 24.04 LTS 6.8.0-1039.41
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1149.158
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1083.92
ubuntu advisories UBUNTU-CVE-2025-21898
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-syms-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-coco_debug SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-source-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- dtb-aarch64 openSUSE Leap 15.6 6.4.0-150600.23.60.3
- kernel-64kb SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.60.4
- kernel-syms SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.60.4
- kernel-obs-qa openSUSE Leap 15.6 6.4.0-150600.23.60.2
suse advisories SUSE-SU-2025:02923-1SUSE-SU-2025:02538-1SUSE-SU-2025:20498-1SUSE-SU-2025:20483-1SUSE-SU-2025:02335-1SUSE-SU-2025:02334-1
- git.kernel.org/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8 commit
- git.kernel.org/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149 commit
- git.kernel.org/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5 commit
- git.kernel.org/stable/c/992775227843c9376773784b8b362add44592ad7 commit
- git.kernel.org/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3 commit
- git.kernel.org/stable/c/746cc474a95473591853927b3a9792a2d671155b commit
- git.kernel.org/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6 commit
- git.kernel.org/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-21898 updated cvss 4.4
kernel: ftrace: Avoid potential division by zero in function_stat_show()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-369 Divide By Zero
- Technology feeds
References
-
git.kernel.org
/stable/c/5b3d32f607f0478b414b16516cf27f9170cf66c8
patch
-
git.kernel.org
/stable/c/ca381f60a3bb7cfaa618d73ca411610bd7fc3149
patch
-
git.kernel.org
/stable/c/3d738b53ed6cddb68e68c9874520a4bf846163b5
patch
-
git.kernel.org
/stable/c/992775227843c9376773784b8b362add44592ad7
patch
-
git.kernel.org
/stable/c/f58a3f8e284d0bdf94164a8e61cd4e70d337a1a3
patch
-
git.kernel.org
/stable/c/746cc474a95473591853927b3a9792a2d671155b
patch
-
git.kernel.org
/stable/c/9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6
patch
-
git.kernel.org
/stable/c/a1a7eb89ca0b89dc1c326eeee2596f263291aca3
patch
- lists.debian.org /debian-lts-announce/2025/05/msg00045.html
- lists.debian.org /debian-lts-announce/2025/05/msg00030.html
Sources
- CVE List CVE-2025-21898
- NVD CVE-2025-21898
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.