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 EF1D04F649D for ; Wed, 16 Sep 2026 10:42:41 +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=1789555375; cv=none; b=ATlnUPVg7p7xqJXsiRXt+Fd4Hipy7a2eQZ/AoOx7FBEEvnHLMFgdj25F5XvFnEaXpIkP90tocRi3PVZkgWoN+a44zY1E6J/8ml67t3xi/OgB9aCNKAgAgm/+seD1ynQAgBq1ZcwOUVEnau0VqJ3XaQJkk8UJTZ80CQ7LoETnn+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555375; c=relaxed/simple; bh=UrBO9ZziJbcbsAyYWi2yZ7kz1S2TjRRSv3k/t6s/kME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VZx2vKokdHmITDrOQZbKrrnlVFLaqFgKu3fO3HtnpP29HYvZElunBQqxjFXF3iEwWShFyaxFqJDVZZU2RxThjkGq285FfQsHL6zIsBRTCWTtyl8rWPAi2/rYkcvbMNUqWuwHDDwctpjFho2wQnLctwfwZTUwVQF02oyPaZzLjpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NBdWrl+o; 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="NBdWrl+o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F21DF1F0089E; Wed, 16 Sep 2026 10:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555359; bh=c8bH6OUAR1eMasOzKTht+laTqw/s44HLoNdRGmbaeS8=; h=From:To:Cc:Subject:Date:Reply-To; b=NBdWrl+oyRJfdyJ5SjmDC83dCBKPK4UjUjIFKu1WQ6e8b/7homZbujDKbJpsmRbfz v6UTs2yRSUCj4yIk1yQn6egwhNiiR28vSlJphcQMR1uSOj9+dqIecz5sk29IvAmTRO 3ednFCIWMEjmvqHNOt4C0znkKH5kzfSxtk3ERMO4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89991: bpf: Fix infinite loop in pcpu_freelist push with one possible CPU Date: Wed, 16 Sep 2026 11:32:01 +0100 Message-ID: <2026091657-CVE-2026-89991-8326@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=3627; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JoaHsP6o5Nzao+9wblzF2nlaGPCr6kbci0/DG4NBmLg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8pd+qDOwyGw72DfjoHrHniNFTWYteqqr0jdMjT91Z 8HXWqmYjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjItDqG2SxlUUq2WiZf72Qt PX7jGfv+OwVPShnmezT/CM2sm12/Z8GRAO1PXg69auxbAQ== 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 infinite loop in pcpu_freelist push with one possible CPU __pcpu_freelist_push() can loop forever when only one CPU is possible and an NMI re-enters pcpu_freelist_push() while the interrupted context holds that CPU's freelist lock. After the current-CPU fast path fails, the fallback loop walks cpu_possible_mask while skipping the current CPU. With CONFIG_SMP=n, or when an SMP kernel is limited to one possible CPU with nr_cpus=1 or possible_cpus=1, there are no other possible CPUs to examine. The loop therefore makes no lock acquisition attempt and can never make progress. The following stack was observed on a UP system: NMI context: pcpu_freelist_push free_htab_elem htab_map_delete_elem [perf-event BPF program] __perf_event_overflow perf_event_nmi_handler exc_nmi Interrupted context: __pcpu_freelist_push pcpu_freelist_push free_htab_elem htab_map_delete_elem [raw_tp/sys_enter BPF program] __bpf_trace_sys_enter do_syscall_64 raw_res_spin_lock() detects the same-CPU recursive acquisition and returns -EDEADLK, but the subsequent fallback loop has no candidate head on a system with one possible CPU. Restore the extra fallback head that existed before the rqspinlock conversion. Keep the current-CPU fast path, then try the other possible CPUs and finally the extra head. The additional head lets a push, which cannot fail without losing a preallocated element, make progress when the only per-CPU head is held by the interrupted context. Also check the extra head from the pop path so that nodes placed there can be reused. The Linux kernel CVE team has assigned CVE-2026-89991 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb and fixed in 6.18.51 with commit a24a146ae2cb5d9faeea96d10010fcb6579abe1f Issue introduced in 6.15 with commit f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb and fixed in 7.2.5 with commit a5b5e62baceff9e252c6535cf42a027d04f226cf Issue introduced in 6.15 with commit f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb and fixed in 7.3-rc2 with commit efebf6496685c93150df5bb0794363ae70c5f58a 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-89991 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/percpu_freelist.c kernel/bpf/percpu_freelist.h 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/a24a146ae2cb5d9faeea96d10010fcb6579abe1f https://git.kernel.org/stable/c/a5b5e62baceff9e252c6535cf42a027d04f226cf https://git.kernel.org/stable/c/efebf6496685c93150df5bb0794363ae70c5f58a