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 859C1172BC4 for ; Fri, 21 Jun 2024 11:19:06 +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=1718968746; cv=none; b=cdONPVbARSziMtue8Yotxa9buFVnpNhPCnKiH6o7CHQWJ2lWlMm0cnUiKBOk5n7Ox7ssx0CUh4hDmKNrPeCcJfj5TCgLeX7STtwDuIzfNfnH2p19vlxvWOQoE1jts78ugOZjKMFCgKpIMEHzFvnM5aFzk6CCw/7yVtkRjRh1vQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718968746; c=relaxed/simple; bh=MBbwIhnf6tbhL7mHKgz12G3gTsVQL0X5Sw1IiALvVNg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q6ugFV6wtpwPabk1iDgcV7ySXKh1GudYhhZQsWNrvUP/+ksPKui9CG+QSTxpza6eAeDSkSfWYKhqVjgQsIfwqH7Fp77y9BMZNrjGb4pEcYgU/uBYzQG6nw9B7jrWDkAa4AS4z/hvExu/dC1nw1OVjQTfCQ5fNGKctThCYh8/LxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S8f79HDJ; 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="S8f79HDJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A23C2BBFC; Fri, 21 Jun 2024 11:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718968746; bh=MBbwIhnf6tbhL7mHKgz12G3gTsVQL0X5Sw1IiALvVNg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S8f79HDJaarus6J92OOCt/xwMjHx3uctAK7jH1MrBPSBleAQcS4be7j1RDf6u9TcG HRwpg6oAXtPv05rZSrfEjD9ZmE3J1/0sUTLuX7VCRF7ilFBXCPy9w9/zXLrdUMFC4P 8TR6q43X7xMcADi12IYdywXNEZu8xeSwSCdZ+d1c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36481: tracing/probes: fix error check in parse_btf_field() Date: Fri, 21 Jun 2024 13:18:54 +0200 Message-ID: <2024062151-CVE-2024-36481-b416@gregkh> X-Mailer: git-send-email 2.45.2 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=2046; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MBbwIhnf6tbhL7mHKgz12G3gTsVQL0X5Sw1IiALvVNg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlibMZgqOfn+/X4TP793B+f92hmz/9ztxLM2u3nrttp qLJ1dyHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJrAhXJwCMJG3FxgWzNKb9X+eocsNBYfG aBsbs3/y3A9CGOYpXy5WuXFOb83KjO6LWnIvt3ycs/IZAA== 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: tracing/probes: fix error check in parse_btf_field() btf_find_struct_member() might return NULL or an error via the ERR_PTR() macro. However, its caller in parse_btf_field() only checks for the NULL condition. Fix this by using IS_ERR() and returning the error up the stack. The Linux kernel CVE team has assigned CVE-2024-36481 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit c440adfbe302 and fixed in 6.6.33 with commit ad4b202da2c4 Issue introduced in 6.6 with commit c440adfbe302 and fixed in 6.9.4 with commit 4ed468edfeb5 Issue introduced in 6.6 with commit c440adfbe302 and fixed in 6.10-rc2 with commit e569eb349702 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-36481 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: kernel/trace/trace_probe.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/ad4b202da2c498fefb69e5d87f67b946e7fe1e6a https://git.kernel.org/stable/c/4ed468edfeb54c7202e559eba74c25fac6a0dad0 https://git.kernel.org/stable/c/e569eb34970281438e2b48a3ef11c87459fcfbcb