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 8183415ECCD for ; Mon, 29 Jul 2024 15:53:56 +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=1722268436; cv=none; b=hSdwpVKbs74y6tKcZQs5xaYVg7k473AIk+XaBg1aJbpXVXge9ianf0nGPTUc721gd2EHd2Hahe6mnT9B6CjUeBWeX9BLZDts8FBuGKINVTWo/YsNRXGk08ziJ5sGqrqPODL4MliZNl1RwjsMsfB0yILxzQJr4flq4n4B9GkvsXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268436; c=relaxed/simple; bh=SP4MQVCiWCNetGndje/Qxmkiy+TGDIjswN15DzLFvus=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BnrFssbgW1jfyb/0GeQ0kqPjtzLxogVnXCVACwOIDU9+hiXVsQIj65xBXUot9ldgb6odvpK1oWNwg3YFI84911NfGFXtyooILe0jqSDJyoAbH2i1K0S3tbDQp+r1BWubP3BHjgpPrXgVqdT6CeCPjnG1neWe1aPuh+eRr+3Fzr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CjfTfBDB; 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="CjfTfBDB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F03E0C32786; Mon, 29 Jul 2024 15:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268436; bh=SP4MQVCiWCNetGndje/Qxmkiy+TGDIjswN15DzLFvus=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CjfTfBDBQwB3tG/HZ48OBNvKny0bbM7+0wm++y/Bq+f2kNjl5yA3KEXqlZLvkVmug NQQzTuYUl+CYE2wRjRzK89bXpjkjnhERbX6Z1+FTWB3gc6hqO4rJg6nD76jaG0ewGT rzM4XXb7eKbHS/w2vBlp22XVwU4u5IeyswS+fbik= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42067: bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() Date: Mon, 29 Jul 2024 17:52:56 +0200 Message-ID: <2024072951-CVE-2024-42067-c8ef@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=2155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SP4MQVCiWCNetGndje/Qxmkiy+TGDIjswN15DzLFvus=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd13WtpRVKNrafy9wW8B67ylSnn99g1oCt6+sttmpc G29xfXYjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIW02G2WypfLa5KpwTEsOb d9mr8AhduF5Xx7CgP5jzXnhL+D8pPhaZ9mfvK7gtk2YAAA== 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: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() set_memory_rox() can fail, leaving memory unprotected. Check return and bail out when bpf_jit_binary_lock_ro() returns an error. The Linux kernel CVE team has assigned CVE-2024-42067 to this issue. Affected and fixed versions =========================== Fixed in 6.6.37 with commit 08f6c05feb1d Fixed in 6.6.38 with commit 9fef36cad60d Fixed in 6.9.8 with commit 044da7ae7afd Fixed in 6.10 with commit e60adf513275 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-42067 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: arch/arm/net/bpf_jit_32.c arch/loongarch/net/bpf_jit.c arch/mips/net/bpf_jit_comp.c arch/parisc/net/bpf_jit_core.c arch/s390/net/bpf_jit_comp.c arch/sparc/net/bpf_jit_comp_64.c arch/x86/net/bpf_jit_comp32.c include/linux/filter.h 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/08f6c05feb1db21653e98ca84ea04ca032d014c7 https://git.kernel.org/stable/c/9fef36cad60d4226f9d06953cd56d1d2f9119730 https://git.kernel.org/stable/c/044da7ae7afd4ef60806d73654a2e6a79aa4ed7a https://git.kernel.org/stable/c/e60adf513275c3a38e5cb67f7fd12387e43a3ff5