CVE-2025-68167 gpiolib: fix invalid pointer access in debugfs
A null pointer dereference in the Linux kernel gpiolib debugfs interface can cause a system crash if memory allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-68167?
CVE-2025-68167 is a high-severity vulnerability in Linux, published on 16 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-68167?
How do I fix CVE-2025-68167?
Apply the vendor's patch.
Is CVE-2025-68167 being exploited?
There is no known exploitation of CVE-2025-68167 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-68167, DEBIAN-CVE-2025-68167, GHSA-v8v6-qqfp-9rx7, UBUNTU-CVE-2025-68167.