Linux Kernel GPIOLib DebugFS Invalid Pointer Dereference Vulnerability

Vulnerability

A vulnerability in the Linux kernel's GPIOLib component can lead to an invalid pointer dereference in DebugFS. When memory allocation fails in the 'gpiolib_seq_start()' function, the 's->private' field remains uninitialized. This uninitialized field is later accessed without a prior check in 'gpiolib_seq_stop()', potentially causing a crash or other unintended behavior. The issue affects the stable branch of the Linux kernel.

Impact

Exploitation of this vulnerability can cause a denial-of-service condition by leading to an invalid memory access, which could cause a system crash or instability.

Reproduction

The vulnerability can be reproduced by triggering a memory allocation failure in the 'gpiolib_seq_start()' function. This can be done by simulating low memory conditions or by modifying the function to induce a failure. Once the allocation fails, the 's->private' field will remain uninitialized. If 'gpiolib_seq_stop()' is then called, it will dereference the uninitialized pointer, leading to an invalid memory access.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the Linux kernel can be found in the official Linux documentation.

Added: Dec 16, 2025, 5:14 PM
Updated: Dec 16, 2025, 5:14 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.