ftrace: Avoid potential division by zero in function_stat_show()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e31f7939c1c27faa5d0e3f14519eaf7c89e8a69d · < 746cc474a95473591853927b3a9792a2d671155b| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ftrace function_stat_show() can encounter a division by zero while computing standard deviation. The input does not establish how an attacker could trigger this or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.