Skip to main content

In the Linux kernel, the following vulnerability has been resolved: tcp: Skip cond_resched() in inet_csk_listen_stop() under BPF context… (CVE-2026-98646)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:57 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's TCP stack was resolved involving a call to cond_resched() within inet_csk_listen_stop() under BPF context. The issue occurs when bpf_sock_destroy() runs under rcu_read_lock() and triggers a debug check due to a sleeping function being called from an invalid context. The fix involves skipping cond_resched() in this specific listener path to avoid rescheduling within the iterator's rcu_read_lock() context.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:29:24 UTC

Technical Analysis

The vulnerability in the Linux kernel relates to the TCP stack where cond_resched() is called inside inet_csk_listen_stop() during the execution of bpf_sock_destroy() under BPF context. Since bpf_sock_destroy() runs under rcu_read_lock(), calling cond_resched() leads to a BUG triggered by a sleeping function call from an invalid context. The root cause is that the listener path in tcp_abort() was not guarded by has_current_bpf_ctx(), unlike other abort paths. The patch adds this guard to skip cond_resched() in the listener path, preventing rescheduling within the iterator's rcu_read_lock() context and avoiding the debug check failure.

Potential Impact

This vulnerability causes a kernel BUG due to an invalid sleeping function call in a context that forbids sleeping, which can lead to kernel warnings or crashes when BPF programs interact with TCP listeners. It affects system stability under specific BPF socket destruction scenarios but does not indicate direct privilege escalation or code execution.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to skip cond_resched() in inet_csk_listen_stop() under BPF context. Users should update their Linux kernel to a version that includes this patch to prevent the kernel BUG from occurring. No additional mitigation is required beyond applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vfmc-fwrh-r2q5
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98646"]

Threat ID: 6ad520ad2cdf04f656993a3e

Added to database: 10/18/2026, 19:40:29 UTC

Last enriched: 10/18/2026, 22:29:24 UTC

Last updated: 10/19/2026, 01:08:16 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses