CVE-2026-46258

gpio: cdev: Avoid NULL dereference in linehandle_create()

State
Published
Severity
Not scored
Published
Jun 3, 2026
Updated
Jun 3, 2026
Reserved
May 13, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • da7e394bf58f94e9783379fef7c7fb4411b03208 to before 87b9d7a4cfbed5f42af440372026270af997c766Affected
  • da7e394bf58f94e9783379fef7c7fb4411b03208 to before 6af6be278e3ba2ffb6af5b796c89dfb3f5d9063eAffected
LinuxLinux
  • 6.19Affected
  • before 6.19Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.