Skip to content
Heist/ feed
Unrated

bpf: Fix missing migration protection in __rhtab_map_lookup_and_delete_batch()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix missing migration protection in __rhtab_map_lookup_and_delete_batch() bpf_mem_cache_free_rcu() uses this_cpu_ptr() which requires migration to be disabled. All callers of rhtab_delete_elem() disable migration except __rhtab_map_lookup_and_delete_batch(), which calls it under rcu_read_lock() only. On CONFIG_PREEMPT_RCU, rcu_read_lock() does not disable preemption or migration, so the task can migrate between CPUs during the delete loop, causing this_cpu_ptr() to trigger: BUG: using smp_processor_id() in preemptible [00000000] code Fix by wrapping the delete loop in migrate_disable()/migrate_enable() in __rhtab_map_lookup_and_delete_batch(), matching the migration protection that the other callers already provide.

Announced Source revision 1
Original source ↗

CVE-2026-98787

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-98787

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": "818e0084822742fc00eacbf5df3476a5e72c7d0e",
        "lessThan": "94f41ec5fa578765b74ad5736c2f029e7aabc46d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "818e0084822742fc00eacbf5df3476a5e72c7d0e",
        "lessThan": "de020dc8049bfb2b22e3b6d99c031feb2e22d112",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/hashtab.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7.2"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "7.2",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "7.2.10",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/hashtab.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98787

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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