Skip to content
Heist/ feed
Unrated

bpf: Fix infinite loop in pcpu_freelist push with one possible CPU

Type: advisorySource: Official CVE List1 source record

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

Announced Source revision 1
Original source ↗

CVE-2026-89991

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-89991

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb",
        "lessThan": "a24a146ae2cb5d9faeea96d10010fcb6579abe1f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb",
        "lessThan": "a5b5e62baceff9e252c6535cf42a027d04f226cf",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb",
        "lessThan": "efebf6496685c93150df5bb0794363ae70c5f58a",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/percpu_freelist.c",
      "kernel/bpf/percpu_freelist.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.51",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/percpu_freelist.c",
      "kernel/bpf/percpu_freelist.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89991

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#36427 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement