trace_events_hist: add check for return value of 'create_hist_field'
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 30350d65ac5676c6d08d4fc935bc9a9cb0fd4ed3 · < 8b152e9150d07a885f95e1fd401fc81af202d9a4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
trace_events_hist: add check for return value of 'create_hist_field'
Function 'create_hist_field' is called recursively at trace_events_hist.c:1954 and can return NULL-value that's why we have to check it to avoid null pointer dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The Linux kernel's trace_events_hist code can dereference a null pointer when a recursive call to create_hist_field returns NULL. The input does not establish whether an attacker can trigger this, what the resulting impact is, or whether network access, authentication, or user interaction is required.
Anyone running the Linux kernel should check their version; affected versions were not specified.