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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade microvm-kernelUpgrade kernel-tools-debuginfoUpgrade kernel6.18-modules-extra-commonUpgrade python3-perf6.18-debuginfoUpgrade bpftool6.18Upgrade kernel6.18-develUpgrade python3-perf-debuginfoUpgrade bpftool-debuginfoUpgrade python3-perf6.18Upgrade bpftoolUpgrade microvm-kernel6.18Upgrade kernel-livepatch-6.1.189-236.399Upgrade kernel-debuginfo-common-x86_64Upgrade kernel6.18Upgrade kernel6.18-tools-debuginfoUpgrade kernelUpgrade kernel-develUpgrade kernel-livepatch-6.18.56-125.164Upgrade kernel-toolsUpgrade kernel6.18-tools-develUpgrade kernel-modules-extraUpgrade perf6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-headersUpgrade kernel-debuginfoUpgrade bpftool6.18-debuginfoUpgrade perfUpgrade kernel6.18-toolsUpgrade kernel-tools-develUpgrade perf6.18-debuginfoUpgrade python3-perfUpgrade perf-debuginfoUpgrade kernel6.18-modules-extraUpgrade kernel-modules-extra-commonUpgrade kernel6.18-debuginfo-common-aarch64Upgrade kernel6.18-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-headers | Nov 2, 2026 | Oct 18, 2026 |
| Debian | — | Upgrade linux-6.12Upgrade linux | Oct 28, 2026 | Oct 18, 2026 |
| Redhat_linux | — | No solution exists | Oct 23, 2026 | Oct 18, 2026 |
| Ubuntu | — | Upgrade linux-awsUpgrade linux-aws-fipsUpgrade linux-nvidiaUpgrade linux-intel-iotg-5.15Upgrade linux-gcp-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-realtimeUpgrade linux-azure-5.15Upgrade linux-gcp-fipsUpgrade linux-bluefieldUpgrade linux-kvmUpgrade linux-ibmUpgrade linux-gkeopUpgrade linux-azure-fde-5.15Upgrade linux-oracleUpgrade linux-azureUpgrade linux-riscv-7.0Upgrade linux-hwe-5.15Upgrade linux-gcpUpgrade linux-ibm-5.15Upgrade linux-riscvUpgrade linux-intel-iotgUpgrade linux-hwe-7.0Upgrade linux-riscv-5.15Upgrade linux-fipsUpgrade linux-nvidia-tegra-5.15Upgrade linux-nvidia-tegraUpgrade linux-gkeUpgrade linux-aws-5.15Upgrade linux-lowlatencyUpgrade linux-oracle-5.15Upgrade linux-nvidia-tegra-igxUpgrade linux-azure-fipsUpgrade linuxUpgrade linux-oem-7.0Upgrade linux-intel-iot-realtime | Nov 3, 2026 | Oct 18, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Oct 22, 2026 | Oct 18, 2026 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub