From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80EEF216E23 for ; Wed, 26 Feb 2025 02:14:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536054; cv=none; b=Rax+vaIHSpXqBNTry8WR6fnpZ+VRBIgo3/LWqzSEoTKJ7S0ymNK8EkLKQP0VvFjdCGDK/OVB9LxapZsvFt71OCxPB8gZEluw/p49NPzghRussueDnrKSywy89HGyERfOg/Wyo5tGqIKOi2bAdLYFHwZXOrBJbTpYAxEBe84ZjWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536054; c=relaxed/simple; bh=qdNfYhvqSlTCpdYDeF218dewe6YZxXhXdVx4oTgaQDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jR94eynVQs1fuBP6VU4yF8pTPu19JkjsD/387eL1PIOlKHaYOLVV1IyyVaG17mEJfUbXq5KbLOovXcy9yCpC9uGYV/460vXosYHphH1dp2mpBsHG4ZdkQuYz79XXn+34BLRBg1vyw+ikmOagZVIyD9jcRYM2OwGBXe4GpG62Alg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DN9tuZO/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DN9tuZO/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54DEBC4CEDD; Wed, 26 Feb 2025 02:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536054; bh=qdNfYhvqSlTCpdYDeF218dewe6YZxXhXdVx4oTgaQDI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DN9tuZO/SrPGc6GTmYViIcpENWCpAeRXN4sREfFtMvMFV73Ngi0nQnoawvrY36SaT tkNFyxh8IWmB+/cO9H1iOtYIckNnieMR/wpAzRd1fkk8vKOLYiLTfmU+zz3pMd4B1o KB4DMjQZPkzHEqZM03OnjIOPpixevoiOx9f0PXw0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49423: rtla: Avoid record NULL pointer dereference Date: Wed, 26 Feb 2025 03:11:37 +0100 Message-ID: <2025022654-CVE-2022-49423-e3fc@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2418; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qdNfYhvqSlTCpdYDeF218dewe6YZxXhXdVx4oTgaQDI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yj/JFm0SnMdeFsC9J+TOqs8vA9NjDnn5merd2/ySY VmN1JW0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI7laG2eyWN59NYZ6n3hce y/hsxW8On3uVzQzzM8pf7xbI5aqOOV4dbDOpLuVzxwwnAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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