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)
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.
AI Analysis
Technical Summary
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.
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)
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
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.