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 8355C15A4B3 for ; Fri, 12 Jul 2024 12:22:13 +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=1720786933; cv=none; b=H7KnaWdJ4D9ULtRR1adVLjJza7WVxpL2s9fImb4mChb9zBSvK0MtwfihxkgAtLPxfBjTpSUrjcwNlllUvou+ObvzBtxD419jT6lqokeRnTrVBZHXBAThuDyrrcBnHUmTpEbxhrVwZ9rlmdprm9m+MeCQ89Y+t6FxlhdbA5L/5Xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786933; c=relaxed/simple; bh=nnhUwAMdfJxrXRKc4Ad9F2QMqovuroqJ3Ml3AKA3gg4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IZykj0DmpBFigmwlwhUP0M/7J8QY1c4/iZOcs4p8uiEOXk/F3ccX4AJmVjoqXuonn7gyvsJQD5vnPzrmEl9tqD70ckCUl1u2zx6mgY+7Px1p5hcVu5ZA5rsl18yw4LgW35ajiPk2cfvra+u2qTXz8ZmuhyncFMdnMHxxvB35W00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZNKy1KFO; 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="ZNKy1KFO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02FE5C32782; Fri, 12 Jul 2024 12:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786933; bh=nnhUwAMdfJxrXRKc4Ad9F2QMqovuroqJ3Ml3AKA3gg4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZNKy1KFO90wIXuky/87+z9F9LaNsBUIpTbbj9npCjXNLoio3sPoskgJxBJpacHdC8 udfLsjk86x2PKzSIl5b7fT5bnQ3cJ3dKEeOsRaIx3gm7uFJ0EGtmu4t3S0TL3O2WfU XH7LV3algsnMWk/hJ0mv5Y7tbDn3Jdhe6h4rsATo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40908: bpf: Set run context for rawtp test_run callback Date: Fri, 12 Jul 2024 14:21:26 +0200 Message-ID: <2024071209-CVE-2024-40908-bdc0@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=2407; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nnhUwAMdfJxrXRKc4Ad9F2QMqovuroqJ3Ml3AKA3gg4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5bfGzVxv/PeZbrU+8/ujdvOfBsrpvNzVYauwVz5MS UtAiWdLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkfhbDguPmRxxdpUs/eob9 zCq4pRHgU3NHgmG+Y0XPStVTOYvrOmq5O01/TvL79IQZAA== 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: bpf: Set run context for rawtp test_run callback syzbot reported crash when rawtp program executed through the test_run interface calls bpf_get_attach_cookie helper or any other helper that touches task->bpf_ctx pointer. Setting the run context (task->bpf_ctx pointer) for test_run callback. The Linux kernel CVE team has assigned CVE-2024-40908 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 7adfc6c9b315 and fixed in 5.15.162 with commit 789bd77c9342 Issue introduced in 5.15 with commit 7adfc6c9b315 and fixed in 6.1.95 with commit 3708b6c2546c Issue introduced in 5.15 with commit 7adfc6c9b315 and fixed in 6.6.35 with commit d387805d4b4a Issue introduced in 5.15 with commit 7adfc6c9b315 and fixed in 6.9.6 with commit ae0ba0ab7475 Issue introduced in 5.15 with commit 7adfc6c9b315 and fixed in 6.10-rc3 with commit d0d1df8ba18a 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-40908 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: net/bpf/test_run.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/789bd77c9342aa6125003871ae5c6034d0f6f9d2 https://git.kernel.org/stable/c/3708b6c2546c9eb34aead8a34a17e8ae69004e4d https://git.kernel.org/stable/c/d387805d4b4a46ee01e3dae133c81b6d80195e5b https://git.kernel.org/stable/c/ae0ba0ab7475a129ef7d449966edf677367efeb4 https://git.kernel.org/stable/c/d0d1df8ba18abc57f28fb3bc053b2bf319367f2c