CVE-2026-98644
bpf: Avoid soft lockup in __htab_map_lookup_and_delete_batch()
Reported by linux · Published October 18, 2026
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.
EPSS 0.21% · 10.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 057996380a42bb64ccc04383cfa9c0ace4ea11f0, 057996380a42bb64ccc04383cfa9c0ace4ea11f0, 057996380a42bb64ccc04383cfa9c0ace4ea11f0 |
| Linux | Linux | 5.6, 0, 5.15.222 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| linux | linux_kernel | 5.6, 5.6, 5.6 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.56-125.164 | 0 |
| amazon:2023 | microvm-kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
…and 19 more
Timeline
- Oct 18, 2026 Coalition ESS Score
- Oct 18, 2026 CVE Published
- Oct 19, 2026 EPSS Score (5 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98644
vulnetix vdb fixes CVE-2026-98644
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98644/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart