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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-12-16T13:42:47.480Z
- Modified: 2026-10-14T13:10:00.187Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from e348544f7994d252427ed3ae637c7081cbb90f66 before 70180a6031056096c93ed2f47c41803268bdd91c; from e348544f7994d252427ed3ae637c7081cbb90f66 before 3c91c8f424d3e44c8645ab765a38773e58afb07d; from e348544f7994d252427ed3ae637c7081cbb90f66 before 2f6115ad8864cf3f48598f26c74c7c8e5c391919; 6.9 (not affected: before 6.9; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/70180a6031056096c93ed2f47c41803268bdd91c>
- <https://git.kernel.org/stable/c/3c91c8f424d3e44c8645ab765a38773e58afb07d>
- <https://git.kernel.org/stable/c/2f6115ad8864cf3f48598f26c74c7c8e5c391919>

## Sources

- CVE List: [CVE-2025-68167](https://www.cve.org/CVERecord?id=CVE-2025-68167), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-68167](https://nvd.nist.gov/vuln/detail/CVE-2025-68167), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68167 · Whole record: https://cve.day/CVE-2025-68167.json · Rebuilt by cve.day 2026-11-25T22:59:09.475Z
