In the Linux kernel, the following vulnerability has been resolved:
ftrace: Avoid potential division by zero in functionstatshow()
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.
[
{
"id": "CVE-2025-21898-03b6cdf0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@746cc474a95473591853927b3a9792a2d671155b",
"signature_version": "v1",
"target": {
"function": "function_stat_show",
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"length": 1168.0,
"function_hash": "128248630663950921154216590158951701496"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-21898-455ca9f7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6",
"signature_version": "v1",
"target": {
"function": "function_stat_show",
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"length": 1168.0,
"function_hash": "128248630663950921154216590158951701496"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-21898-4a426ef0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@746cc474a95473591853927b3a9792a2d671155b",
"signature_version": "v1",
"target": {
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"152291475538736962653282505942690311226",
"185669095670235679229085382361105865209",
"162946958377863030063386635953687906792",
"132134680572241771871569150090234678478",
"209631472841942702901187827579174955547",
"138875199985064357086875736727617344791",
"42704022428262296457423805974207313183",
"98657636500213499351940559312851453163",
"4854758718696971662477411008812863498",
"83766793954914096162455994263613296781",
"286411650671708643590522616074391710391",
"152869637419556497034171694981219988208",
"118086156418363591382210437112071453578",
"522118541586260807232029376029488538"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-21898-608a40c8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca381f60a3bb7cfaa618d73ca411610bd7fc3149",
"signature_version": "v1",
"target": {
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"152291475538736962653282505942690311226",
"185669095670235679229085382361105865209",
"162946958377863030063386635953687906792",
"132134680572241771871569150090234678478",
"209631472841942702901187827579174955547",
"138875199985064357086875736727617344791",
"42704022428262296457423805974207313183",
"98657636500213499351940559312851453163",
"4854758718696971662477411008812863498",
"83766793954914096162455994263613296781",
"286411650671708643590522616074391710391",
"152869637419556497034171694981219988208",
"118086156418363591382210437112071453578",
"522118541586260807232029376029488538"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-21898-7a38603d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d738b53ed6cddb68e68c9874520a4bf846163b5",
"signature_version": "v1",
"target": {
"function": "function_stat_show",
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"length": 1168.0,
"function_hash": "128248630663950921154216590158951701496"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-21898-8e33c587",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9cdac46fa7e854e587eb5f393fe491b6d7a9bdf6",
"signature_version": "v1",
"target": {
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"152291475538736962653282505942690311226",
"185669095670235679229085382361105865209",
"162946958377863030063386635953687906792",
"132134680572241771871569150090234678478",
"209631472841942702901187827579174955547",
"138875199985064357086875736727617344791",
"42704022428262296457423805974207313183",
"98657636500213499351940559312851453163",
"4854758718696971662477411008812863498",
"83766793954914096162455994263613296781",
"286411650671708643590522616074391710391",
"152869637419556497034171694981219988208",
"118086156418363591382210437112071453578",
"522118541586260807232029376029488538"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-21898-b8d0652d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca381f60a3bb7cfaa618d73ca411610bd7fc3149",
"signature_version": "v1",
"target": {
"function": "function_stat_show",
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"length": 1168.0,
"function_hash": "128248630663950921154216590158951701496"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-21898-e8bf743f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d738b53ed6cddb68e68c9874520a4bf846163b5",
"signature_version": "v1",
"target": {
"file": "kernel/trace/ftrace.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"152291475538736962653282505942690311226",
"185669095670235679229085382361105865209",
"162946958377863030063386635953687906792",
"132134680572241771871569150090234678478",
"209631472841942702901187827579174955547",
"138875199985064357086875736727617344791",
"42704022428262296457423805974207313183",
"98657636500213499351940559312851453163",
"4854758718696971662477411008812863498",
"83766793954914096162455994263613296781",
"286411650671708643590522616074391710391",
"152869637419556497034171694981219988208",
"118086156418363591382210437112071453578",
"522118541586260807232029376029488538"
],
"threshold": 0.9
},
"signature_type": "Line"
}
]