Skip to content
Heist/ feed
Unrated

bpf: Wait for an RCU tasks grace period before freeing trampoline progs

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: bpf: Wait for an RCU tasks grace period before freeing trampoline progs When a prog is detached from a trampoline, it is freed after an RCU grace period, or an RCU tasks trace one if it is sleepable. This covers the tasks that are running the prog, since the prog's enter helper takes the matching read lock before the prog is called. On a preemptible kernel, it doesn't cover a task that was preempted in the trampoline just before the enter helper. That task holds no lock yet, and it calls the prog after it was freed: BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0 Read of size 8 at addr ffffc90000055040 by task candidate/110 CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full) Call Trace: __bpf_prog_enter_recur+0x3a5/0x3f0 bpf_trampoline_6442509193+0x37/0xf1 __x64_sys_futex+0x9/0x410 do_syscall_64+0xb0/0x530 ... Wait for an RCU tasks grace period before the existing one when freeing a prog that was linked to a trampoline. An RCU tasks grace period only ends once the tasks that were preempted have run again, and bpf_tramp_image_put() already relies on it to free the image. It doesn't wait for tasks that sleep in the trampoline, the next commit takes care of those. Only progs that were linked to a trampoline can be called this way, so bpf_trampoline_add_prog() marks them and other progs are still freed as before.

Announced Group revision 1
Original source ↗

CVE-2026-98800

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

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": "e21aa341785c679dd409c8cb71f864c00fe6c463",
        "lessThan": "40955f6512a03f0e046f5256b0706b26ba191018",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e21aa341785c679dd409c8cb71f864c00fe6c463",
        "lessThan": "0fb5751a6e411b1b466c06e50021818d9391df98",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e21d2b92354b3cd25dd774ebb0f0e52ff04a7861",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "85d177f56e5256e14b74a65940f981f6e3e8bb32",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5.10.28",
        "lessThan": "5.11",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "5.11.11",
        "lessThan": "5.12",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "include/linux/bpf.h",
      "kernel/bpf/syscall.c",
      "kernel/bpf/trampoline.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.12",
        "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": [
      "include/linux/bpf.h",
      "kernel/bpf/syscall.c",
      "kernel/bpf/trampoline.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98800

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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