CVE-2025-68167
published high CVSS 3.1 · 7.8gpiolib: fix invalid pointer access in debugfs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe348544f7994d252427ed3ae637c7081cbb90f66 to < 70180a6031056096c93ed2f47c41803268bdd91c · e348544f7994d252427ed3ae637c7081cbb90f66 to < 3c91c8f424d3e44c8645ab765a38773e58afb07d · e348544f7994d252427ed3ae637c7081cbb90f66 to < 2f6115ad8864cf3f48598f26c74c7c8e5c391919 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.12.58 through 6.12.* (unaffected · semver) · 6.17.8 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1495 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached only by reading the local debugfs file /sys/kernel/debug/gpio; there is no network or remote path into gpiolib's seq_file handlers. AC:L - The attacker fully controls both required conditions — memory pressure to make the small GFP_KERNEL kzalloc fail, and unbounded repetition of read()/lseek() on the file, each of which drives multiple start/stop cycles — so the failure can simply be retried until it lands. PR:L - The gpio debugfs file is explicitly created world-readable (mode 0444) and needs no capability, so any unprivileged local user reaches it on the many embedded, automotive, industrial and Android deployments that mount debugfs traversable (mode=755 or uid/gid options), which is common precisely because GPIO debugging is the reason debugfs is mounted there. UI:N - The attacker triggers the bug entirely through their own read() calls on the debugfs file; no action by any other user or victim process is needed. S:U - The corruption stays within the kernel's own security authority — freed slab memory and per-CPU SRCU counters — with no crossing of a VM, IOMMU or sandbox boundary. C:H - gpiolib_seq_stop() reads priv->idx out of an already-freed kmalloc-16 object, and the accompanying double free corrupts the slab freelist, enabling overlapping allocations that yield arbitrary kernel memory disclosure. I:H - The stale idx is fed unvalidated into __srcu_read_unlock(), producing this_cpu_inc() at an attacker-influenced out-of-bounds offset from the per-CPU srcu_data, and the subsequent kfree() of an object owned by another allocation is a classic double-free write primitive. A:H - On the first iteration s->private is NULL, so gpiolib_seq_stop() dereferences NULL and oopses; on later iterations the use-after-free, wild per-CPU increment and double free reliably panic the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e348544f7994d252427ed3ae637c7081cbb90f66 to < 70180a6031056096c93ed2f47c41803268bdd91c (affected · git)e348544f7994d252427ed3ae637c7081cbb90f66 to < 3c91c8f424d3e44c8645ab765a38773e58afb07d (affected · git)e348544f7994d252427ed3ae637c7081cbb90f66 to < 2f6115ad8864cf3f48598f26c74c7c8e5c391919 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.12.58 through 6.12.* (unaffected · semver)6.17.8 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
gpiolib: fix invalid pointer access in debugfs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5f6a669016e83d87ec5286f5646faef73cab053238817dcbd32ea9d676a998eb
- Ingested
- 23 Sep 2026, 08:57:02 UTC
- Source record
- Official CVE record