CVE-2025-68167: gpiolib: fix invalid pointer access in debugfs

Published Dec 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: fix invalid pointer access in debugfs

If the memory allocation in gpiolibseqstart() fails, the s->private field remains uninitialized and is later dereferenced without checking in gpiolibseqstop(). Initialize s->private to NULL before calling kzalloc() and check it before dereferencing it.

Affected Software

1 affected component
Linux Linux kernel (gpiolib)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update the gpiolib code path so that s->private is initialized to NULL before any allocation/call in gpiolib_seq_start(), and in gpiolib_seq_stop() dereference only after verifying kzalloc() succeeded (i.e., s->private is non-NULL).

    Linux kernel gpiolib gpiolib_seq_start() / gpiolib_seq_stop() s->private initialization and null-check = Initialize s->private to NULL before calling kzalloc() and check s->private after kzalloc() before dereferencing it in gpiolib_seq_stop()

Event History

Dec 16, 2025
CVE Published
via MITRE·01:42 PM
Data Sourced
via MITRE·01:42 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-68167?

CVE-2025-68167 has a severity rating of 7.8, indicating a high risk.

2

What components are affected by CVE-2025-68167?

CVE-2025-68167 affects the gpiolib component of the Linux kernel.

3

How do I fix CVE-2025-68167?

To fix CVE-2025-68167, update to the latest version of the Linux kernel that addresses this vulnerability.

4

What type of vulnerability is CVE-2025-68167?

CVE-2025-68167 is an invalid pointer dereference vulnerability due to uninitialized memory.

5

What could happen if CVE-2025-68167 is exploited?

Exploitation of CVE-2025-68167 could lead to memory corruption, system crashes, or unauthorized access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203