---
id: CVE-2025-68167
title: |-
  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 dereferen…
summary: |-
  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 dereferen…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
published: '2025-12-16'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68167'
references:
  - url: 'https://git.kernel.org/stable/c/2f6115ad8864cf3f48598f26c74c7c8e5c391919'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3c91c8f424d3e44c8645ab765a38773e58afb07d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/70180a6031056096c93ed2f47c41803268bdd91c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00152
epssPercentile: 0.03902
ingestedAt: '2026-10-14T13:30:58.442Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
