Skip to main content

In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: fix kernel stack leak to user-space in error path If we fail to… (CVE-2026-98528)

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

Description

A vulnerability in the Linux kernel's GPIO character device interface could cause kernel stack data to leak to user-space in an error path. This occurs when the function gpio_desc_to_lineinfo() fails to acquire a GPIO chip guard and returns early without zeroing a data structure passed to user-space. The issue has been resolved by ensuring the structure is zeroed before use and by propagating error codes properly.

AI-Powered Analysis

Machine-generated threat intelligence

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

Technical Analysis

The Linux kernel contained a vulnerability in the gpio: cdev component where, if gpio_desc_to_lineinfo() failed to acquire the GPIO chip guard, it would return immediately without zeroing the info struct. This struct is later passed to user-space in lineinfo_get_v1(), potentially leaking kernel stack contents. The fix involved changing gpio_desc_to_lineinfo() to return an int error code (-ENODEV) on failure and zeroing the info struct before attempting to acquire the SRCU read lock, preventing kernel stack leakage.

Potential Impact

The vulnerability could lead to unintended disclosure of kernel stack contents to user-space processes, potentially exposing sensitive kernel memory data. There is no indication of active exploitation in the wild. The impact is primarily an information leak from kernel to user-space.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to address this vulnerability. Users should apply the official kernel updates that include this patch. Since this is a kernel-level fix, upgrading to a patched kernel version is the recommended remediation.

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-2259-3wph-4x6g
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98528"]

Threat ID: 6ad520b02cdf04f656993aed

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

Last enriched: 10/18/2026, 20:19:00 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