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 4A1FF21350 for ; Thu, 22 Aug 2024 03:34: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=1724297654; cv=none; b=E/LZOaKtkUCh1OCy3wg4NkNvnyWPyF5WZwo2J0jzHbk07F/TZwYoJmzDQk/NTyEzIHlZvYXjgV9Ve8EV9usvmwMNhPp1R8K1sjrpzrMaM0ee5eRcZDT/uk7MPSALl2vfETc5aozuaZhRTNzQhixcwx83uGyzFz8Kivos1uYKrPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297654; c=relaxed/simple; bh=qLLGm74ieSITmlH4bic+AiSb+aD0I3v/WvKpg3DPISQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZASu4ZEiy+6dCwM1rDDP4t4lN4GBZ8p8NuKZNAH2BmQ5aa2EX6n/Ts7fvRqeH2ogenyYo7vANuOEqQ0cR3NpmkjulinfIbkV+kgJon1oy67CroQkaQOJqB29J2lCFeX0bhOgorEuBgT9Kydf4hLAX6WqNyB1YaHoTkcidgpAaNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w2BZh3Mz; 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="w2BZh3Mz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D385EC4AF09; Thu, 22 Aug 2024 03:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297654; bh=qLLGm74ieSITmlH4bic+AiSb+aD0I3v/WvKpg3DPISQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w2BZh3MzamBmIi/ZBckcZM3DPUFpUc2rpTwAjMboBy+7ST9j57zDDCUfcube8lBTj uocr2IUtztrqgA1SAFX6uGIViExcZkAdoNhjsr8qH7JoUOH4Ru//Vnc5ii3TjLfjRB BC/wHgWiYdS4y3iaba+2vpMwlGLjZ3Yn77JYi7no= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48939: bpf: Add schedule points in batch ops Date: Thu, 22 Aug 2024 11:31:40 +0800 Message-ID: <2024082226-CVE-2022-48939-ff01@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=2511; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qLLGm74ieSITmlH4bic+AiSb+aD0I3v/WvKpg3DPISQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNvIFZKi28Jf6V5lckul7djmo8Vu7XW3Wor3vdvY/3 bbdQKS7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaydCHDggtsOsY/7l0s0mmS tP62US/h97yv2xjmmfsplaZ9SD9qne5zg0f3VcBOqWgDAA== 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: Add schedule points in batch ops syzbot reported various soft lockups caused by bpf batch operations. INFO: task kworker/1:1:27 blocked for more than 140 seconds. INFO: task hung in rcu_barrier Nothing prevents batch ops to process huge amount of data, we need to add schedule points in them. Note that maybe_wait_bpf_programs(map) calls from generic_map_delete_batch() can be factorized by moving the call after the loop. This will be done later in -next tree once we get this fix merged, unless there is strong opinion doing this optimization sooner. The Linux kernel CVE team has assigned CVE-2022-48939 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit aa2e93b8e58e and fixed in 5.10.103 with commit 7ef94bfb08fb Issue introduced in 5.6 with commit aa2e93b8e58e and fixed in 5.15.26 with commit 8628f489b749 Issue introduced in 5.6 with commit aa2e93b8e58e and fixed in 5.16.12 with commit 7e8099967d0e Issue introduced in 5.6 with commit aa2e93b8e58e and fixed in 5.17 with commit 75134f16e7dd 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-48939 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/bpf/syscall.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/7ef94bfb08fb9e73defafbd5ddef6b5a0e2ee12b https://git.kernel.org/stable/c/8628f489b749a4f9767991631921dbe3fbcdc784 https://git.kernel.org/stable/c/7e8099967d0e3ff9d1ae043e80b27fbe46c08417 https://git.kernel.org/stable/c/75134f16e7dd0007aa474b281935c5f42e79f2c8