In the Linux kernel, the following vulnerability has been resolved: bpf: Fix missing migration protection in __rhtab_map_lookup_and_delete_batch()… (CVE-2026-98787)
Description
A vulnerability in the Linux kernel's BPF subsystem was fixed by adding missing migration protection in the __rhtab_map_lookup_and_delete_batch() function. The issue involved the use of this_cpu_ptr() without disabling CPU migration, which could cause a kernel BUG due to smp_processor_id() being used in preemptible code. The fix adds migrate_disable()/migrate_enable() calls around the delete loop to prevent CPU migration during this operation.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's BPF component had a missing migration protection in the __rhtab_map_lookup_and_delete_batch() function. The function calls rhtab_delete_elem() under rcu_read_lock(), which does not disable CPU migration on CONFIG_PREEMPT_RCU kernels. Since this_cpu_ptr() requires migration to be disabled, the task could migrate CPUs during the delete loop, triggering a kernel BUG related to smp_processor_id() usage in preemptible code. The patch adds migrate_disable()/migrate_enable() calls around the delete loop to align with protections used by other callers of rhtab_delete_elem().
Potential Impact
This vulnerability could cause a kernel BUG due to improper CPU migration handling during BPF map element deletion, potentially leading to system instability or crashes. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix is available that adds migration disable/enable calls around the affected code section. Users should apply the official Linux kernel patches that address this issue. No alternative mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c3cw-2pj9-44qj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98787"]
Threat ID: 6ad520aa2cdf04f6569939a4
Added to database: 10/18/2026, 19:40:26 UTC
Last enriched: 10/18/2026, 22:21:16 UTC
Last updated: 10/18/2026, 22:21:17 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.