| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49423: rtla: Avoid record NULL pointer dereference |
| |
| 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. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49423 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.18 with commit 51d64c3a181938da8fb56404524e15776e9c6bf8 and fixed in 5.18.3 with commit b0f1c686baff74d5df10f2f46670ef4e24a75756 |
| Issue introduced in 5.18 with commit 51d64c3a181938da8fb56404524e15776e9c6bf8 and fixed in 5.19 with commit 2a6b52ed72c822b5ee146a6a00ea66614fe02653 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2022-49423 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| tools/tracing/rtla/src/osnoise_hist.c |
| tools/tracing/rtla/src/osnoise_top.c |
| tools/tracing/rtla/src/timerlat_hist.c |
| tools/tracing/rtla/src/timerlat_top.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/b0f1c686baff74d5df10f2f46670ef4e24a75756 |
| https://git.kernel.org/stable/c/2a6b52ed72c822b5ee146a6a00ea66614fe02653 |