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 A639B31AA8F for ; Wed, 24 Jun 2026 16:37:51 +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=1782319072; cv=none; b=Z00aTVNUz8hJixs7FJfyWlYQgqrLv4E7E8htFjTZ/ELdd3b/W2/9UPqaK7dWOLj8NIUT3fulLILRZ7vLNlhocDJh23DzYdMgj3FwF06PcSBdafLXYPMXZhTQrk5s6bolheoDBtml8XHoRxIDyOkvyPEwkptGvNR4a/6pYIPNUnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319072; c=relaxed/simple; bh=eqy6FwhSsUpI79C8EGXrUkWDV1WlpOc32gQQke61QYA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tkGcPo3NIvYNPDBMR3S+/d++bNbMon8OrzIU+5HB/0gfcv/YLqN8/LR5usNJNQigbJVKZ0S8XvM0XKs97TMzIvyVQ4DRoW3xsFqgHxA42sYRqSdsmASG1yVs8OL59h2XmYymJNUvmRh9gfOGD/526Is1U/KEwCn0O7Y5ZsGr3NY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yWMF7tUq; 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="yWMF7tUq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6081F00A3A; Wed, 24 Jun 2026 16:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319071; bh=w14FFsVYJSt8pzgTAxiDRFyTCA4Tph669P8ykGE9zF4=; h=From:To:Cc:Subject:Date:Reply-To; b=yWMF7tUqgaeSSMfihV/xzf12yzEtDQwLZ4uwFe/csboCCiwRHTd3D7m08HJ8jpSyS c59dT4DvuDUJ51P8lBSRqr06PIRi5y1QQhnmg6Lflf2h9txFkyvoaMfj+kcTE1IaeS 8eY2iNc1nSvjdlI2VmzK2A5rROBigC7w6P0/m2TI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53032: bpf: Fix NULL deref in map_kptr_match_type for scalar regs Date: Wed, 24 Jun 2026 17:30:56 +0100 Message-ID: <2026062454-CVE-2026-53032-464e@gregkh> X-Mailer: git-send-email 2.54.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=2959; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nPdo43EYykVCN728MF0G3M+nTWpQl8xIXT4nSMFFpkQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bMzH4r6YeR7ektfW0r7264y5bs+ScziLfv29f/Xzu ud+Fe3HOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi5bMZFiwuMnp+xnnZQalH q/TvtVzZWrJeKYthnj2TkqPrK+ND3U0xW5ecNOjX4r6wDwA= 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 NULL deref in map_kptr_match_type for scalar regs Commit ab6c637ad027 ("bpf: Fix a bpf_kptr_xchg() issue with local kptr") refactored map_kptr_match_type() to branch on btf_is_kernel() before checking base_type(). A scalar register stored into a kptr slot has no btf, so the btf_is_kernel(reg->btf) call dereferences NULL. Move the base_type() != PTR_TO_BTF_ID guard before any reg->btf access. The Linux kernel CVE team has assigned CVE-2026-53032 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit ab6c637ad0276e42f8acabcbc64932a6d346dab3 and fixed in 6.6.141 with commit 520454e839710c327808c2fcc98e28cee77355fc Issue introduced in 6.6 with commit ab6c637ad0276e42f8acabcbc64932a6d346dab3 and fixed in 6.12.91 with commit 0a36c1f72888bca0237295a4da19cd91821a90be Issue introduced in 6.6 with commit ab6c637ad0276e42f8acabcbc64932a6d346dab3 and fixed in 6.18.33 with commit 6982653ce5f119982aa58f1af58e7bfbebf39252 Issue introduced in 6.6 with commit ab6c637ad0276e42f8acabcbc64932a6d346dab3 and fixed in 7.0.10 with commit da1d615ce49a47986a8864e2371a26e97861085c Issue introduced in 6.6 with commit ab6c637ad0276e42f8acabcbc64932a6d346dab3 and fixed in 7.1 with commit 4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad Issue introduced in 6.4.16 with commit af3d2e0f3a54e67806959d161e613457772babc5 Issue introduced in 6.5.3 with commit 4782968e0d631b0d8944dcfd4bf8fb49be087101 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-53032 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/verifier.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/520454e839710c327808c2fcc98e28cee77355fc https://git.kernel.org/stable/c/0a36c1f72888bca0237295a4da19cd91821a90be https://git.kernel.org/stable/c/6982653ce5f119982aa58f1af58e7bfbebf39252 https://git.kernel.org/stable/c/da1d615ce49a47986a8864e2371a26e97861085c https://git.kernel.org/stable/c/4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad