Linux Kernel GPIO cdev Null Deref in linehandle_create()
CVE-2026-46258 Published on June 3, 2026
gpio: cdev: Avoid NULL dereference in linehandle_create()
In the Linux kernel, the following vulnerability has been resolved:
gpio: cdev: Avoid NULL dereference in linehandle_create()
In linehandle_create(), there is a statement like this:
retain_and_null_ptr(lh);
Soon after, there is a debug printout that dereferences "lh", which
will crash things.
Avoid the crash by using handlereq.lines, which is the same value.
Products Associated with CVE-2026-46258
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version da7e394bf58f94e9783379fef7c7fb4411b03208 and below 87b9d7a4cfbed5f42af440372026270af997c766 is affected.
- Version da7e394bf58f94e9783379fef7c7fb4411b03208 and below 6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e is affected.
- Version 6.19 is affected.
- Before 6.19 is unaffected.
- Version 6.19.4, <= 6.19.* is unaffected.
- Version 7.0, <= * is unaffected.