Skip to main content

In the Linux kernel, the following vulnerability has been resolved: kprobes: Fix permanent hang when flushing the kprobe optimizer Writing 0 to… (CVE-2026-98530)

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

Description

A vulnerability in the Linux kernel's kprobes subsystem caused a permanent hang when flushing the kprobe optimizer. Writing 0 to /proc/sys/debug/kprobes-optimization while a kprobe is jump-optimized results in the writer process sleeping indefinitely with a mutex held, causing subsequent reads or writes to hang. The issue stems from improper synchronization and completion handling in the optimizer flushing logic, leading to deadlock conditions.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 20:19:07 UTC

Technical Analysis

The Linux kernel kprobes subsystem had a flaw where writing 0 to /proc/sys/debug/kprobes-optimization while a kprobe was jump-optimized caused the writing process to hang indefinitely. This occurs because the writer sleeps in an uninterruptible state (D state) holding the kprobe_sysctl_mutex, blocking any further access to the sysctl. The root cause is that the completion mechanism used to signal the optimizer flush never completes while a waiter is sleeping, due to reinitialization and improper synchronization between multiple flushers. The fix replaces the completion with a counter of optimizer passes that is incremented and signaled under mutex protection, allowing multiple flushers to wait concurrently without deadlock.

Potential Impact

The vulnerability causes a permanent hang (deadlock) in processes attempting to write to or read from the kprobes optimization sysctl interface. This can lead to system instability or unresponsiveness for affected processes. There is no indication of privilege escalation or code execution impact. The issue affects system reliability when interacting with kprobes optimization controls.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to replace the completion mechanism with a counter and proper synchronization to prevent the hang. Users should apply the official kernel update that includes this fix. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended remediation. No alternative workarounds are indicated.

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-2p4m-w3h2-4q6g
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98530"]

Threat ID: 6ad520b02cdf04f656993aeb

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

Last enriched: 10/18/2026, 20:19:07 UTC

Last updated: 10/18/2026, 22:02:57 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