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 EEC451E6DDE for ; Wed, 4 Sep 2024 19:57:59 +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=1725479880; cv=none; b=CSFZscT46MnF2umB0Po/t87E0wQ3qI3GeHJSdtBw+GqCfIBfddOOl+DFV36r7ALVQGt6At+8WrRNVM91kp5OZSqvoVuDZG5nQ4HvQoABBwWPvgSMpDXq/0vFYhdvaGPOC5aY54SmlBuVz9pip1kEpBg95LAoYhn7oyW8klZlBbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479880; c=relaxed/simple; bh=pQNxD3rgtOByZNhLg5xRTnqScrNo15a6Vj+8ETqa7tE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U01VuKxwJLu4m1GGmEJ3wLYvcPuygPMGMYX/QVvK000N7kev00J2SI1FlYdbPJot1NcGnrFyFWeSA8wjhhpcJabkeBIN7K0WvIfxynclyB2puySPsE4XG9Kv2K+avS3MGcgdKw+BDSaymz53exWhF2Ta5fKKO4lhoDFQSm1fkWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mkk/5BKH; 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="mkk/5BKH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D856C4CEC2; Wed, 4 Sep 2024 19:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479879; bh=pQNxD3rgtOByZNhLg5xRTnqScrNo15a6Vj+8ETqa7tE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mkk/5BKHmDbkaMbUtBqWzak/lk9d11By4emoFbCWofRTWQpSzRip8hTQcICVPCX9T V4pRJ3T5ppcblfj1oRGB9dWYpA0sSatNcm/93yB8PiRh0zXrORmKZlDSUvir2jFxTe /HY6kiJpVugW/qa0c1WKcFOR5nWsroG1z4guRErA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45002: rtla/osnoise: Prevent NULL dereference in error handling Date: Wed, 4 Sep 2024 21:57:07 +0200 Message-ID: <2024090450-CVE-2024-45002-c292@gregkh> X-Mailer: git-send-email 2.46.0 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=2155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pQNxD3rgtOByZNhLg5xRTnqScrNo15a6Vj+8ETqa7tE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3djflG6z03XJJz+hIw8HX7RPt2RekGk8Qbs1zZAh/a 2d7Sd+0I4aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSw8cw3e+OdreXldARlqu6 Z25o8s7lKlZnmGfm+sU92Dcu/tv9aOZ4lVm/DmuKhAEA 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/osnoise: Prevent NULL dereference in error handling If the "tool->data" allocation fails then there is no need to call osnoise_free_top() and, in fact, doing so will lead to a NULL dereference. The Linux kernel CVE team has assigned CVE-2024-45002 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 1eceb2fc2ca5 and fixed in 6.1.107 with commit fc575212c6b7 Issue introduced in 5.17 with commit 1eceb2fc2ca5 and fixed in 6.6.48 with commit 753f1745146e Issue introduced in 5.17 with commit 1eceb2fc2ca5 and fixed in 6.10.7 with commit abdb9ddaaab4 Issue introduced in 5.17 with commit 1eceb2fc2ca5 and fixed in 6.11-rc4 with commit 90574d2a6759 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-2024-45002 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_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/fc575212c6b75d538e1a0a74f4c7e2ac73bc46ac https://git.kernel.org/stable/c/753f1745146e03abd17eec8eee95faffc96d743d https://git.kernel.org/stable/c/abdb9ddaaab476e62805e36cce7b4ef8413ffd01 https://git.kernel.org/stable/c/90574d2a675947858b47008df8d07f75ea50d0d0