# CVE-2026-98789: bpf: Fix objects stuck in free\_by\_rcu\_ttrace

> 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:25.665Z
- **Modified:** 2026-10-19T10:19:42.963Z

## Who should check

- Anyone running Linux \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< 33d0a5d2fee06a51f2f056dd901296515912e954; \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< fbd97dd1d3ce32d32fb7be86acc3fdb7c04fa043
- Anyone running Linux 6.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix objects stuck in free\_by\_rcu\_ttrace

do\_call\_rcu\_ttrace() returns early when call\_rcu\_ttrace\_in\_progress is set
and leaves the objects in free\_by\_rcu\_ttrace. \_\_free\_rcu() frees
waiting\_for\_gp\_ttrace only and clears the flag. Hence the objects that
free\_bulk() or \_\_free\_by\_rcu() added while RCU tasks trace GP was in flight
stay in free\_by\_rcu\_ttrace until free\_bulk() or alloc\_bulk() is called for
the same bpf\_mem\_cache again, which may never happen. The number of such
objects is not bounded.

Turn call\_rcu\_ttrace\_in\_progress into three states:
0 - idle
1 - \_\_free\_rcu() is queued
2 - \_\_free\_rcu() is queued and free\_by\_rcu\_ttrace got more objects since

do\_call\_rcu\_ttrace() sets 2. \_\_free\_rcu() does cmpxchg(1 -\> 0) and starts
the next GP when it fails. It cannot clear the flag first and check
free\_by\_rcu\_ttrace later, since bpf\_mem\_alloc\_destroy() frees bpf\_mem\_cache
without waiting for RCU callbacks when the flag is zero.

Now \_\_free\_rcu() queues itself, so the one that didn't see 'draining' may
do call\_rcu\_tasks\_trace() after rcu\_barrier\_tasks\_trace() in
free\_mem\_alloc(). Queue it under rcu\_read\_lock() and do synchronize\_rcu()
before the barriers. Calling rcu\_barrier\_tasks\_trace() twice works too, but
creating and destroying hash maps in a loop on many cpus slows down to one
free\_mem\_alloc() per GP and kworkers pile up.

## Affected and fixed versions

- Linux: \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< 33d0a5d2fee06a51f2f056dd901296515912e954; \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< fbd97dd1d3ce32d32fb7be86acc3fdb7c04fa043 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98789.md
Affected: Linux >= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, < 33d0a5d2fee06a51f2f056dd901296515912e954; >= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, < fbd97dd1d3ce32d32fb7be86acc3fdb7c04fa043; Linux 6.1
Fixed in: Linux 33d0a5d2fee06a51f2f056dd901296515912e954

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-98789 being exploited?

There is no confirmed exploitation: CVE-2026-98789 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-98789?

It has no CVSS score yet. Unknown.

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

Linux \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< 33d0a5d2fee06a51f2f056dd901296515912e954; \>= 8d5a8011b35d387c490a5c977b1d9eb4798aa071, \< fbd97dd1d3ce32d32fb7be86acc3fdb7c04fa043; Linux 6.1.

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

Yes. Fixed in Linux 33d0a5d2fee06a51f2f056dd901296515912e954. No fix listed yet: follow the vendor advisory.

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

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/33d0a5d2fee06a51f2f056dd901296515912e954>
- other: <https://git.kernel.org/stable/c/fbd97dd1d3ce32d32fb7be86acc3fdb7c04fa043>

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

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