# CVE-2026-98799: bpf: Skip detached progs in trampoline images that are still in use

> 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-26)
- **Published:** 2026-10-18T15:48:44.434Z
- **Modified:** 2026-10-19T10:19:43.933Z

## Who should check

- Anyone running Linux \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 967566ad325b42150483e81acb09ea9d800c00b8; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 17637e1a581a22466ac3620a91e099683ff9cc6f; 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: Skip detached progs in trampoline images that are still in use

bpf\_tramp\_image\_put() makes sure a trampoline image is not freed while
a task may still be running in it, but nothing similar is done for the
progs called by that image. Detach drops the last prog reference right
away and the prog is freed after grace periods, on the basis that a
task still in the traced function skips the fexit progs once the nop at
ip\_after\_call is patched to a jump.

That leaves out a task sleeping in a sleepable prog that runs before
the detached one, which no grace period waits for:

  CPU 0                               CPU 1
  in image I, sleeping in prog S
                                      detach P from I's trampoline
                                       -\> new image, bpf\_tramp\_image\_put(I)
                                      bpf\_prog\_put(P), last ref
                                      grace periods, P freed
  back from S
  \_\_bpf\_prog\_enter(P)
  call P-\>bpf\_func

If S and P are fexit progs the task is already past the patched jump,
and fentry only images don't have one. On x86 this is an int3 in
poisoned bpf\_prog\_pack memory:

  Oops: int3: 0000 \[\#1\] SMP NOPTI
  CPU: 18 UID: 0 PID: 94573 Comm: x169 Not tainted 6.18.44 \#1 PREEMPT(lazy)
  RIP: 0010:0xffffffffc0601d8d
  Call Trace:
   \<TASK\>
   ? bpf\_trampoline\_6442515411+0x1a4/0x21b
   bpf\_lsm\_bprm\_committed\_creds+0x5/0x10
   security\_bprm\_committed\_creds+0x5f/0x70
   begin\_new\_exec+0x2d6/0x410
   ...

We hit this in production when progs attached through trampolines got
detached while their hooks were busy, and it was independently found
with a fuzzer and KASAN.

Have the JITs emit a patchable nop in front of each prog call sequence
and record it in the image. When a prog is detached, patch its nop to a
jump over the call sequence. Progs that stay attached keep running for
the tasks that are in the image, and ip\_after\_call isn't needed anymore.

The task can be in any image that isn't freed yet, not only in the
current one. It sleeps in image I1 that calls S, P and Q, then P is
detached and the trampoline moves to image I2, then Q is detached and
its call is still in I1. So the trampoline keeps a list of its images
until they are freed, and detaching a prog patches its nop in all of
them. Images hold a reference on the trampoline for that long.

On riscv and loongarch a jump of any range takes several instructions,
and a task preempted in the middle of them could resume into half of the
new sequence. The nop is a single instruction there, patched to a near
branch through arch\_bpf\_trampoline\_skip().

With the extra nops, BPF\_MAX\_TRAMP\_LINKS progs no longer fit in a page
on x86 and arm64 (and already didn't on powerpc), so lower the limit
there like s390 does.

## Affected and fixed versions

- Linux: \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 967566ad325b42150483e81acb09ea9d800c00b8; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 17637e1a581a22466ac3620a91e099683ff9cc6f; 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-98799. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98799.md
Affected: Linux >= e21aa341785c679dd409c8cb71f864c00fe6c463, < 967566ad325b42150483e81acb09ea9d800c00b8; >= e21aa341785c679dd409c8cb71f864c00fe6c463, < 17637e1a581a22466ac3620a91e099683ff9cc6f; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; >= 5.10.28, < 5.11; >= 5.11.11,…
Fixed in: Linux 967566ad325b42150483e81acb09ea9d800c00b8, Linux 17637e1a581a22466ac3620a91e099683ff9cc6f, 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-98799 being exploited?

There is no confirmed exploitation: CVE-2026-98799 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-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 967566ad325b42150483e81acb09ea9d800c00b8; \>= e21aa341785c679dd409c8cb71f864c00fe6c463, \< 17637e1a581a22466ac3620a91e099683ff9cc6f; e21d2b92354b3cd25dd774ebb0f0e52ff04a7861; 85d177f56e5256e14b74a65940f981f6e3e8bb32; \>= 5.10.28, \< 5.11; \>= 5.11.11, \< 5.12; Linux 5.12.

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

Yes. Fixed in Linux 967566ad325b42150483e81acb09ea9d800c00b8, Linux 17637e1a581a22466ac3620a91e099683ff9cc6f, Linux 5.11, Linux 5.12. Upgrade Linux to 5.12 or later.

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

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/967566ad325b42150483e81acb09ea9d800c00b8>
- other: <https://git.kernel.org/stable/c/17637e1a581a22466ac3620a91e099683ff9cc6f>

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

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