# CVE-2026-98800: bpf: Wait for an RCU tasks grace period before freeing trampoline progs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-29)
- **Published:** 2026-10-18T15:48:46.223Z
- **Modified:** 2026-10-19T10:19:44.050Z

## Who should check

- Anyone running Linux \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 40955f6512a03f0e046f5256b0706b26ba191018; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 0fb5751a6e411b1b466c06e50021818d9391df98; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; \>= 5.10.28, \< 5.11; \>= 5.11.11, \< 5.12
- Anyone running Linux 5.12

## Description

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:
   \<TASK\>
   \_\_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.

## Affected and fixed versions

- Linux: \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 40955f6512a03f0e046f5256b0706b26ba191018; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 0fb5751a6e411b1b466c06e50021818d9391df98; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; \>= 5.10.28, \< 5.11; \>= 5.11.11, \< 5.12 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 5.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98800. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98800.md
Affected: Linux >= e21aa341785c679dd409c8cb71f864c00fe6c463, < 40955f6512a03f0e046f5256b0706b26ba191018; >= e21aa341785c679dd409c8cb71f864c00fe6c463, < 0fb5751a6e411b1b466c06e50021818d9391df98; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; >= 5.10.28, < 5.11; >= 5.11.11,…
Fixed in: Linux 40955f6512a03f0e046f5256b0706b26ba191018, Linux 0fb5751a6e411b1b466c06e50021818d9391df98, Linux 5.11, Linux 5.12

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98800 being exploited?

There is no confirmed exploitation: CVE-2026-98800 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-98800?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98800?

Linux \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 40955f6512a03f0e046f5256b0706b26ba191018; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 0fb5751a6e411b1b466c06e50021818d9391df98; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; \>= 5.10.28, \< 5.11; \>= 5.11.11, \< 5.12; Linux 5.12.

### Is there a fix for CVE-2026-98800?

Yes. Fixed in Linux 40955f6512a03f0e046f5256b0706b26ba191018, Linux 0fb5751a6e411b1b466c06e50021818d9391df98, Linux 5.11, Linux 5.12. Upgrade Linux to 5.12 or later.

### How do I check if I'm affected by CVE-2026-98800?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/40955f6512a03f0e046f5256b0706b26ba191018>
- other: <https://git.kernel.org/stable/c/0fb5751a6e411b1b466c06e50021818d9391df98>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98800>

HTML: <https://flawdb.com/CVE-2026-98800> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98800>
