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 5BDBE495026 for ; Fri, 25 Sep 2026 10:33:57 +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=1790332438; cv=none; b=tIVv7CO9/pM1RgSOq3S4UDrHrjWrVisFpXh8auHLRTRxPl7h9+7ipfHvGTdAowKj6C9ejhFSoxAPaZPj0qbrwgY95Uwxk7XRlQvuXdtnL6U9eXlzufZBL0860utu9mVM2SJVdt3d2F3hjKWSJI2FEEHyPQDkHkmw7K3HPK/6Wng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332438; c=relaxed/simple; bh=0TzTiw289axj4e9SLbTbiCcubQZ8Fft07hS65aAGx6c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VLbycNq37O2XK1vMbA4vKKuilulWU9ypbQMj+Bp89ak+iXGEvtBoN//p0M2A11Dn+BuY8f5BWJpDUG9/HESi2KtQFeMdDxLddM/Ckx/13ikexaz+49zXeNuD1Au6/wa+B1OcmCHDeXvf7BkneeGKMb6ZG+mu+xv7CaL8HjsfSpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pMr0+2rm; 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="pMr0+2rm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD74C1F000FF; Fri, 25 Sep 2026 10:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332437; bh=id4qixsW4hnUTnU89/KERrNffeccAF7s1sK2g0g8A5U=; h=From:To:Cc:Subject:Date:Reply-To; b=pMr0+2rmcvnMgCNsOZ3W0gUgNnsfP5/dZvHvdof4YFaU4zRIbYDjNQzlZtw79n2GC M6oFIFF20tEyfQSkQx54lC+B5ieVvQYriXyFfI3xqMdhfqXz/G37+5BCGx+HFq2EnT gGxjpNw1gEfdjieyDmxkdVd9O+U9yJcsQ7xHcV/Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98035: bpf: Cancel special fields when recycling rhtab elements Date: Fri, 25 Sep 2026 12:25:37 +0200 Message-ID: <2026092529-CVE-2026-98035-21ef@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=2586; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i96OolvmoMcF+Ww4YcrSMTr9S33l8t2Ii6tYjaHgBz8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvFNZMnVa3izvXhazO1U8MS7BdH9plUXivR3XJ01om HB5VUpTRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkcTTDPCvRE2nsl+7ETOTL FvVR91xzlOXUWoYFp+vC5wvVKPrIsqWeZzFUOVjvptsPAA== 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: Cancel special fields when recycling rhtab elements rhtab_map_update_existing() and rhtab_delete_elem() call bpf_obj_free_fields() when replacing or deleting a value. These map operations can run from BPF programs in NMI context, where releasing a referenced kptr or another complex field is not generally safe. Array and hash maps avoid that problem by cancelling only the asynchronous fields which can be stopped safely in the caller context. Other ownership state remains attached to the allocation until its memory allocator destructor performs the final cleanup. Use bpf_obj_cancel_fields() for the corresponding rhtab paths as well. This cancels timers, workqueues, and task work while allowing rhtab_mem_dtor() to release referenced kptrs when the allocation is eventually destroyed. [ kkd: Rebased, used direct helper calls, and rewrote the commit log ] The Linux kernel CVE team has assigned CVE-2026-98035 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 6905f8601298ecd2d1932a4b4849bf265201118e and fixed in 7.2.7 with commit 28fde1356dbc35e20a9f22a5ee65af09698fdf92 Issue introduced in 7.2 with commit 6905f8601298ecd2d1932a4b4849bf265201118e and fixed in 7.3-rc2 with commit 65cc95eba9e8b46312cac38c227473605a4b996a 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-98035 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/hashtab.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/28fde1356dbc35e20a9f22a5ee65af09698fdf92 https://git.kernel.org/stable/c/65cc95eba9e8b46312cac38c227473605a4b996a