Skip to main content

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix divide-by-zero in btf_struct_walk() When an access goes past the struct… (CVE-2026-98647)

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

Description

A divide-by-zero vulnerability in the Linux kernel's bpf_struct_walk() function has been fixed. The issue occurs when accessing past a struct with a flexible array member whose element type has zero size, causing a divide-by-zero error at program load time. This flaw can trigger a kernel error and crash when loading certain BPF programs.

AI-Powered Analysis

Machine-generated threat intelligence

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

Technical Analysis

The vulnerability in the Linux kernel involves the bpf_struct_walk() function used during BPF program verification. When an access goes beyond the struct and the last member is a flexible array with an element type of zero size, the function performs a modulo operation without checking for zero size, resulting in a divide-by-zero error. This can cause a kernel crash during BPF program loading. The fix rejects zero-sized element types to prevent this error.

Potential Impact

This vulnerability can cause a kernel crash (divide error) when loading a crafted BPF program that triggers the zero-sized element type condition. It affects kernel stability and could potentially be leveraged to cause denial of service. There is no indication of code execution or privilege escalation from the provided data.

Mitigation Recommendations

A fix has been applied to reject zero-sized element types in btf_struct_walk(), preventing the divide-by-zero error. Users should update their Linux kernel to a version that includes this fix. Since no vendor advisory or patch links are provided, check the official Linux kernel release notes or security advisories for the fixed version and apply updates accordingly.

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-p98x-gg62-cxq2
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98647"]

Threat ID: 6ad520ad2cdf04f656993a43

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

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

Last updated: 10/19/2026, 00:48:21 UTC

Views: 3

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