Skip to main content
EPSS 0.1%top 98%

Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: gpio: Fix resource leaks on errors in gpiochip_add_data_with_key() Since commit… (CVE-2026-31732)

0
Medium
Published: 05/01/2026 (05/01/2026, 15:16:00 UTC)
Source: GCVE Database
Product: linux-hwe-edge

Description

A resource leak vulnerability in the Linux kernel's gpio subsystem was fixed in gpiochip_add_data_with_key(). The issue arises because the device release callback was unset, causing reference counts not to be dropped on error paths, leading to resource leaks. The fix involves properly dropping references on errors and reordering instructions to simplify error handling. This vulnerability affects Linux kernel versions prior to 7.0.0-1006.6 and has a medium severity rating with a CVSS score of 5.5.

CVSS v3.1

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

Affected versions
<7.0.0-1006.6

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/01/2026, 04:49:55 UTC

Technical Analysis

CVE-2026-31732 addresses a resource leak in the Linux kernel gpio subsystem. Since commit aab5c6f20023, the device release callback (gdev->dev.release) was unset, preventing the reference count to gdev->dev from being decremented on error paths in gpiochip_add_data_with_key(). This leads to resource leaks when errors occur during initialization. The patch fixes this by ensuring the reference is dropped on errors and reordering the error handling code to avoid double frees and simplify cleanup logic.

Potential Impact

The vulnerability causes resource leaks in the Linux kernel gpio subsystem during error handling in gpiochip_add_data_with_key(). While it does not impact confidentiality or integrity, it affects availability by potentially exhausting kernel resources, which could degrade system stability or cause denial of service conditions.

Mitigation Recommendations

An official patch is available that fixes the resource leak by properly managing reference counts and error handling in gpiochip_add_data_with_key(). Users should update affected Linux kernel versions to 7.0.0-1006.6 or later to remediate this issue. No additional mitigations are indicated by the vendor advisory.

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-fv85-jgqf-p95r
Osv Schema Version
1.4.0
Aliases
["CVE-2026-31732"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a498a7827e9c7971936effc

Added to database: 07/04/2026, 22:34:32 UTC

Last enriched: 08/01/2026, 04:49:55 UTC

Last updated: 09/14/2026, 22:01:33 UTC

Views: 121

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