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 6BA2A2853E0 for ; Wed, 18 Jun 2025 11:04:24 +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=1750244664; cv=none; b=U+cFtUDIWYPepfU0odeEFRh6NECpsduKFTfn45HyVW9GwqpHos8Xk/h5gZnoMc0IHlQFx5Ve1vKlDvL5MY/pgvZEUom32VThK12vH0cI+dDOSb/uqI9/Oinp2bapriGGiP3Nsz595UqSySPeKpe0dMzvr+u5bVbNfDLxZlS4mG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244664; c=relaxed/simple; bh=M+J9X8ig3ZcY/iBP1EASnEdCZMEZBlcyhOann3l2xVk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=moz1YzWGdRZh0Z2uq8au8z1IgR23YQQU2yuEH6Sq6VDHJBZY/aBMbMuwJWymUahrT3NYTUo+MWwPyXLHKYRs+XD19fQiJJDNv2cTXDErUY8yPD0K3jx9VjKNX+vipwoXagPOl6fKQkpazx7OkZAM4n/eTkw9vGqxINTqzpLHJkE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eUHA+eT1; 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="eUHA+eT1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF618C4CEE7; Wed, 18 Jun 2025 11:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244663; bh=M+J9X8ig3ZcY/iBP1EASnEdCZMEZBlcyhOann3l2xVk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eUHA+eT1VQKBAgELltYeihMHuPhSZnDd8KJ19Tq2zOrempfy3qOpmJr+g89VXxztu 5kC5bsSmoEaRURMbExY3To7SuqLNexQWjPlxk0iuaZyhdb3qFd8RxFoTQL3O2/D0j3 Uf9pEUY/uG+HA4LkvSBkFB6IxG5EUoXBmqvBQuPI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49967: bpf: Fix a data-race around bpf_jit_limit. Date: Wed, 18 Jun 2025 13:00:32 +0200 Message-ID: <2025061816-CVE-2022-49967-d167@gregkh> X-Mailer: git-send-email 2.49.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=2209; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yRBuYwo3CsAmBT0pR30PaaJCzyLGMJpr0dRnUsxdzWQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcxw6T36K6t5wdsl8pv3FTPO8t69fUSU7x9xRYeZSu Qzu1uQ9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRi3UMC9ZePmhTz7Ws76e2 sVXoXS9OdaOdQgwL1nvp/8lwXv2v07nu54eDsROWr5w/EwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a data-race around bpf_jit_limit. While reading bpf_jit_limit, it can be changed concurrently via sysctl, WRITE_ONCE() in __do_proc_doulongvec_minmax(). The size of bpf_jit_limit is long, so we need to add a paired READ_ONCE() to avoid load-tearing. The Linux kernel CVE team has assigned CVE-2022-49967 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 and fixed in 5.19.8 with commit ba632ad0bacb13197a8f38e7526448974e87f292 Issue introduced in 4.20 with commit ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 and fixed in 6.0 with commit 0947ae1121083d363d522ff7518ee72b55bd8d29 Issue introduced in 4.9.190 with commit c98446e1bab6253ddce7144cc2a91c400a323839 Issue introduced in 4.14.140 with commit a1fe647042affe713a17243cd10e9b25f3d83948 Issue introduced in 4.19.47 with commit 43caa29c99db5a41b204e8ced01b00e151335ca8 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-49967 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/core.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/ba632ad0bacb13197a8f38e7526448974e87f292 https://git.kernel.org/stable/c/0947ae1121083d363d522ff7518ee72b55bd8d29