rtla: Avoid record NULL pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
rtla: Avoid record NULL pointer dereference
Fix the following null/deref_null.cocci errors: ./tools/tracing/rtla/src/osnoise_hist.c:870:31-36: ERROR: record is NULL but dereferenced. ./tools/tracing/rtla/src/osnoise_top.c:650:31-36: ERROR: record is NULL but dereferenced. ./tools/tracing/rtla/src/timerlat_hist.c:905:31-36: ERROR: record is NULL but dereferenced. ./tools/tracing/rtla/src/timerlat_top.c:700:31-36: ERROR: record is NULL but dereferenced.
"record" is NULL before calling osnoise_init_trace_tool. Add a tag "out_free" to avoid dereferring a NULL pointer.
From the CVE record · Linux
References
- git.kernel.org/stable/c/b0f1c686baff74d5df10f2f46670ef4e24a75756Patch
- git.kernel.org/stable/c/2a6b52ed72c822b5ee146a6a00ea66614fe02653Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49423.json
- nvd.nist.gov/vuln/detail/CVE-2022-49423
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git