Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2143349551A for ; Fri, 25 Sep 2026 10:34:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332470; cv=none; b=cofAr6Ln6rUklxzE2/2kBQXgrbjBJ4v7fcIijVzil1HKOdoPvOhy2pGLtjherk1/LqH5Hg/f7Aq5fXNp6sxgpTAbKgQdVh//gaCIbZFOLfYP2mmFjoftU17jf2uK/W6eiS458/dJD+c1i1mSO4A3wCLc0R04GzryG4UzHyI7TfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332470; c=relaxed/simple; bh=iNn6kQDCtv2xLfbKeyTJFvCvA8Y+92t2CPmHKB0lRGg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RThV5oEmbmRwGP18/QGaKUh3z22HBXNCx6LleJ1fKex6v6xPYsWC/1i3wtuRqblTYAmUH+yULVaohcgNPD8zTNDRPNebuhZGrIK9g2qZ+D324NMa/459jRpcUg2ieiOZv4pypmCJGv4sU2EOQhs9jm/cfhplR3BdHF1QzE5tnMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nf2dno4w; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Nf2dno4w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 813921F000FF; Fri, 25 Sep 2026 10:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332469; bh=YTsrLp2jS7HOtKEKHlCL0N2+m4I7if7083LKbnXbtvE=; h=From:To:Cc:Subject:Date:Reply-To; b=Nf2dno4wpSRHosIb3qs2dusXjZ+lppDq6jJb7GtvuQtyPs7V3gB03xM1dtCh7H5Rr chfITquPa136CFtNeHdkv1FHXG/h7llB1NhVgTXlilHlXePHeVInhd3/fCVSAZoy96 lE7I/2c12oZAG4vUD7Su7LTY2GieRnEsmIPACgdE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98049: bpf: zero extend the result of an arena 32-bit cmpxchg Date: Fri, 25 Sep 2026 12:25:51 +0200 Message-ID: <2026092532-CVE-2026-98049-a258@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2552; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uCHNEc4Tom2fb7LZKHkMnkH7WprXZNCz4PGzsjKKqGA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvDOEzOMvhl3hvnh2a+7TNiV9Fv9oVeOIdpVu5+uBO ZzfrX92xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERmr2VYsOa/7i2b90U6tV47 o0L+L7gwcTm3AcP8sjeh0U9VE778WnvLLW9f6+SWY065AA== 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: zero extend the result of an arena 32-bit cmpxchg bpf_convert_ctx_accesses() rewrites an atomic on an arena pointer from BPF_STX | BPF_ATOMIC to BPF_STX | BPF_PROBE_ATOMIC, and it runs before bpf_opt_subreg_zext_lo32_rnd_hi32(). That pass emits an explicit zero extension for a 32-bit cmpxchg even when bpf_jit_needs_zext() is false. This is done because on some architectures 32-bit cmpxchg requires explicit zero extension for the dst register. E.g. on x86-64 'lock cmpxchg' does not change the %eax if comparison is successful, while BPF semantics declare that each operation on a 32-bit register zero extends it's upper half. is_cmpxchg_insn() matches BPF_MODE == BPF_ATOMIC only, so an arena cmpxchg misses said zero extension adjustment. This patch adjusts is_cmpxchg_insn() to match BPF_PROBE_ATOMIC alongside BPF_ATOMIC. The Linux kernel CVE team has assigned CVE-2026-98049 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit d503a04f8bc0c75dc9db9452d8cc79d748afb752 and fixed in 7.2.7 with commit 1c1b476d43a8b6c9bc04600369dd8cc39950d98e Issue introduced in 6.10 with commit d503a04f8bc0c75dc9db9452d8cc79d748afb752 and fixed in 7.3-rc2 with commit 4814ed6406f3493bd554ad046da5f7fc04833571 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-2026-98049 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/fixups.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/1c1b476d43a8b6c9bc04600369dd8cc39950d98e https://git.kernel.org/stable/c/4814ed6406f3493bd554ad046da5f7fc04833571