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 045FB327BF8 for ; Wed, 24 Jun 2026 16:40:18 +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=1782319219; cv=none; b=hdLDhrKYi1GuoLjD87PQDUhY2p3sj+sPuauJ45qf0/D1PfO1V9QIV2OM8XL3p9c67HDaywt/S2AJc25ikIMSVUTnCcS2WZASD963YUpeMeoCZhPMF56viv0sShcq6tLGCHNnR3IzAq6pSKH2KsbG/u+GjUDN9Lg3uVY7C6+bFC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319219; c=relaxed/simple; bh=pom6yP2J4lwPvzIy/KYxvZ16fQ/CnZzcb52RZtV6OuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZjA+T8hUQz0mjCptFBC6NLR2MHPjGm9/d3mBE8P9g7QqwPc0Lqn80/Jn5twvNnzNweY2Oh/Sjs14NtijcAivoEvWGc6J47aruFlh1IG8rfaZVBq6SnB8wTmt/tu/s0EVo6N0fcEO4j6J2o45J96NCLuboPvkRAJovUflUUGaWKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zg7PFWmb; 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="Zg7PFWmb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 444971F000E9; Wed, 24 Jun 2026 16:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319217; bh=x5D2X+eJXxtiSQF7JHbiFycBowbypBIuf3kdID03q3Y=; h=From:To:Cc:Subject:Date:Reply-To; b=Zg7PFWmb6IUeanyswBNgku6af/Q8jmETzb2yXggoSEKYkzrOeCT1n6HChKcvcEItS +k+Vtll7o51rWUW6mY3Vgn8P8cEyceJnFNmx0qE+Jf8xzCH1wvVO08ha/ZL0G+XO/O w94CiiLdcDMMr3inz0o9DCqfvyu9s3snVPgx3HjU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53106: bpf: Do not allow deleting local storage in NMI Date: Wed, 24 Jun 2026 17:32:10 +0100 Message-ID: <2026062413-CVE-2026-53106-3a3d@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=2771; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=akhp0X0P6EaHknl6WSXxDyygAvZC4ZgqaBlZMsf7AhY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bKJZme9l7LPDi2Kswh2eLf7Fb/jibmx7gfBRvmqn4 tbcpVc6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCLSWxkWTFNJu3KscLZBXR0v /6m+SM4Le93nMSw4/FHj/bcV9V/ucB1wu/70XkbOpB9TAA== 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: Do not allow deleting local storage in NMI Currently, local storage may deadlock when deferring freeing selem or local storage through kfree_rcu(), call_rcu() or call_rcu_tasks_trace() in NMI or reentrant. Since deleting selem in NMI is an unlikely use case, partially mitigate it by returning error when calling from bpf_xxx_storage_delete() helpers in NMI. Note that, it is still possible to deadlock through reentrant. A full mitigation requires returning error when irqs_disabled() is true, which, however is too heavy-handed for bpf_xxx_storage_delete(). The long-term solution requires _nolock versions of call_rcu. Another possible solution is to defer the free through irq_work [0], but it would grow the size of selem, which is non-ideal. The check is only needed in bpf_selem_unlink(), which is used by helpers and syscalls. bpf_selem_unlink_nofail() is fine as it is called during map and owner tear down that never run in NMI or reentrant. [0] https://lore.kernel.org/bpf/20260205190233.912-1-alexei.starovoitov@gmail.com/ The Linux kernel CVE team has assigned CVE-2026-53106 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit a10787e6d58c24b51e91c19c6d16c5da89fcaa4b and fixed in 7.0.10 with commit e84acaf936970b5b0be2c93bbf255295ba9406df Issue introduced in 5.13 with commit a10787e6d58c24b51e91c19c6d16c5da89fcaa4b and fixed in 7.1 with commit 350de5b8a9befaa2a68861c51f671d4f5f751ca5 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-53106 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/bpf_local_storage.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/e84acaf936970b5b0be2c93bbf255295ba9406df https://git.kernel.org/stable/c/350de5b8a9befaa2a68861c51f671d4f5f751ca5