{"id":41116,"date":"2026-10-19T00:32:13","date_gmt":"2026-10-18T16:32:13","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98644"},"modified":"2026-10-19T00:32:13","modified_gmt":"2026-10-18T16:32:13","slug":"cve-2026-98644","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98644","title":{"rendered":"CVE-2026-98644 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Avoid soft locku"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf: Avoid soft lockup in __htab_map_lookup_and_delete_batch()<\/p>\n<p>__htab_map_lookup_and_delete_batch() has no rescheduling point. The<br \/>\nbatch count bounds how many entries are copied out, not how many<br \/>\nbuckets are visited, so one BPF_MAP_LOOKUP_BATCH call can walk the<br \/>\nmap end to end. The empty-bucket fast path is worse: it stays inside<br \/>\na single rcu_read_lock() \/ bpf_disable_instrumentation() section for<br \/>\nany run of consecutive empty buckets.<\/p>\n<p>That holds up on small maps, but it falls apart at scale. On a<br \/>\n144-CPU arm64 host running a CONFIG_PREEMPT_NONE kernel, periodic<br \/>\nBPF_MAP_LOOKUP_BATCH calls against an LRU hash map with 16,777,216<br \/>\nbuckets held a CPU inside the batch op for 77+ seconds and triggered<br \/>\nthe soft lockup watchdog.<\/p>\n<p>Commit 75134f16e7dd (&#8220;bpf: Add schedule points in batch ops&#8221;) fixed this<br \/>\nsame problem in the generic batch ops, but not in this htab-native path,<br \/>\nwhich every htab-based hash map variant uses for its lookup[_and_delete]<br \/>\nbatch ops.<\/p>\n<p>Complete that fix here. Leave the critical section after 64 consecutive<br \/>\nempty buckets, call cond_resched_tasks_rcu_qs(), and resume at the saved<br \/>\nbucket cursor. No locks are held at that point, and resuming from the<br \/>\ncursor is already the function&#8217;s behavior for non-empty buckets. Add the<br \/>\nsame call to the per-bucket loop after copy_to_user(), where every lock<br \/>\nhas been dropped. cond_resched_rcu() is not enough here: sleeping with<br \/>\nbpf_prog_active elevated makes tracing programs on that CPU silently<br \/>\nskip their invocations.<\/p>\n<p>Plain cond_resched() is not enough either. It is a no-op under PREEMPT<br \/>\nand PREEMPT_LAZY, the only models arm64 and x86 have offered since<br \/>\ncommit 7dadeaa6e851 (&#8220;sched: Further restrict the preemption modes&#8221;).<br \/>\nIt is also never a Tasks RCU quiescent state, in any model: the<br \/>\nreschedule counts as a preemption. The walking task stays a holdout and<br \/>\nstalls every synchronize_rcu_tasks() caller, ftrace and BPF trampoline<br \/>\nteardown included, until the syscall returns [1].<br \/>\ncond_resched_tasks_rcu_qs() is the usual tool for that [2]. It reports<br \/>\nthe quiescent state at each yield and still reschedules as<br \/>\ncond_resched() does on PREEMPT_NONE and PREEMPT_VOLUNTARY kernels.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf: Avoid soft lockup in __htab_map_lookup_and_delete_batch()<\/p>\n<p>__htab_map_lookup_and_delete_batch() has no rescheduling point. The<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41116","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}