All reports
Medium

kernel: gpiolib: fix invalid pointer access in debugfs

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-68167

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix invalid pointer access in debugfs If the memory allocation in gpiolib_seq_start() fails, the s->private field remains uninitialized and is later dereferenced without checking in gpiolib_seq_stop(). Initialize s->private to NULL before calling kzalloc() and check it before dereferencing it.

A flaw was found in the Linux kernel's GPIO (General Purpose Input/Output) subsystem. Under low-memory conditions, interacting with the debug filesystem (debugfs) can lead to an uninitialized pointer dereference if an internal memory allocation fails. A local attacker with administrative access to debugfs could exploit this vulnerability to trigger a kernel crash, resulting in a Denial of Service (DoS).