# CVE-2026-98644: bpf: Avoid soft lockup in \_\_htab\_map\_lookup\_and\_delete\_batch()

> 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.21% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:20:15.380Z
- **Modified:** 2026-10-19T10:19:28.723Z

## Who should check

- Anyone running Linux \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 5c8b1869cb99a32a962388848cd19604fb41263e; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< ca5bd55fc508fbb5c08c62206d02237a5b6fc7e8; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 77a3b52b4455e6377e549539e757bc55eedefb51; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< f0c09de08ec077098b7e1563f2285f1c136cd816; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 44f9bcb5ab2b268bc763ed3ebec83308b4972936; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 4e48fe9b1c77966bede0a73feb3059d7595f642d; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9
- Anyone running Linux 5.6

## Description

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

bpf: Avoid soft lockup in \_\_htab\_map\_lookup\_and\_delete\_batch()

\_\_htab\_map\_lookup\_and\_delete\_batch() has no rescheduling point. The
batch count bounds how many entries are copied out, not how many
buckets are visited, so one BPF\_MAP\_LOOKUP\_BATCH call can walk the
map end to end. The empty-bucket fast path is worse: it stays inside
a single rcu\_read\_lock() / bpf\_disable\_instrumentation() section for
any run of consecutive empty buckets.

That holds up on small maps, but it falls apart at scale. On a
144-CPU arm64 host running a CONFIG\_PREEMPT\_NONE kernel, periodic
BPF\_MAP\_LOOKUP\_BATCH calls against an LRU hash map with 16,777,216
buckets held a CPU inside the batch op for 77+ seconds and triggered
the soft lockup watchdog.

Commit 75134f16e7dd ("bpf: Add schedule points in batch ops") fixed this
same problem in the generic batch ops, but not in this htab-native path,
which every htab-based hash map variant uses for its lookup\[\_and\_delete\]
batch ops.

Complete that fix here. Leave the critical section after 64 consecutive
empty buckets, call cond\_resched\_tasks\_rcu\_qs(), and resume at the saved
bucket cursor. No locks are held at that point, and resuming from the
cursor is already the function's behavior for non-empty buckets. Add the
same call to the per-bucket loop after copy\_to\_user(), where every lock
has been dropped. cond\_resched\_rcu() is not enough here: sleeping with
bpf\_prog\_active elevated makes tracing programs on that CPU silently
skip their invocations.

Plain cond\_resched() is not enough either. It is a no-op under PREEMPT
and PREEMPT\_LAZY, the only models arm64 and x86 have offered since
commit 7dadeaa6e851 ("sched: Further restrict the preemption modes").
It is also never a Tasks RCU quiescent state, in any model: the
reschedule counts as a preemption. The walking task stays a holdout and
stalls every synchronize\_rcu\_tasks() caller, ftrace and BPF trampoline
teardown included, until the syscall returns \[1\].
cond\_resched\_tasks\_rcu\_qs() is the usual tool for that \[2\]. It reports
the quiescent state at each yield and still reschedules as
cond\_resched() does on PREEMPT\_NONE and PREEMPT\_VOLUNTARY kernels.

## Affected and fixed versions

- Linux: \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 5c8b1869cb99a32a962388848cd19604fb41263e; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< ca5bd55fc508fbb5c08c62206d02237a5b6fc7e8; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 77a3b52b4455e6377e549539e757bc55eedefb51; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< f0c09de08ec077098b7e1563f2285f1c136cd816; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 44f9bcb5ab2b268bc763ed3ebec83308b4972936; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 4e48fe9b1c77966bede0a73feb3059d7595f642d; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9 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-98644. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98644.md
Affected: Linux >= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, < 5c8b1869cb99a32a962388848cd19604fb41263e; >= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, < ca5bd55fc508fbb5c08c62206d02237a5b6fc7e8; >= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, < 77a3b52b4455e6377e549539e757bc55eedefb51; >= 057996380a42bb64ccc0438…
Fixed in: Linux 5c8b1869cb99a32a962388848cd19604fb41263e, Linux 77a3b52b4455e6377e549539e757bc55eedefb51, Linux 44f9bcb5ab2b268bc763ed3ebec83308b4972936, Linux 4e48fe9b1c77966bede0a73feb3059d7595f642d, Linux 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 5c8b1869cb99a32a962388848cd19604fb41263e; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< ca5bd55fc508fbb5c08c62206d02237a5b6fc7e8; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 77a3b52b4455e6377e549539e757bc55eedefb51; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< f0c09de08ec077098b7e1563f2285f1c136cd816; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 44f9bcb5ab2b268bc763ed3ebec83308b4972936; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 4e48fe9b1c77966bede0a73feb3059d7595f642d; \>= 057996380a42bb64ccc04383cfa9c0ace4ea11f0, \< 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9; Linux 5.6.

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

Yes. Fixed in Linux 5c8b1869cb99a32a962388848cd19604fb41263e, Linux 77a3b52b4455e6377e549539e757bc55eedefb51, Linux 44f9bcb5ab2b268bc763ed3ebec83308b4972936, Linux 4e48fe9b1c77966bede0a73feb3059d7595f642d, Linux 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9. Upgrade Linux to 85136bf22404474a815fc0ed26ec0d1cbc1bc3f9 or later.

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

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/5c8b1869cb99a32a962388848cd19604fb41263e>
- other: <https://git.kernel.org/stable/c/ca5bd55fc508fbb5c08c62206d02237a5b6fc7e8>
- other: <https://git.kernel.org/stable/c/77a3b52b4455e6377e549539e757bc55eedefb51>
- other: <https://git.kernel.org/stable/c/f0c09de08ec077098b7e1563f2285f1c136cd816>
- other: <https://git.kernel.org/stable/c/44f9bcb5ab2b268bc763ed3ebec83308b4972936>
- other: <https://git.kernel.org/stable/c/4e48fe9b1c77966bede0a73feb3059d7595f642d>
- other: <https://git.kernel.org/stable/c/85136bf22404474a815fc0ed26ec0d1cbc1bc3f9>

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

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