# CVE-2026-46258: gpio: cdev: Avoid NULL dereference in linehandle_create()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-06-03T15:49:55.372Z
- Modified: 2026-07-22T20:10:00.127Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from da7e394bf58f94e9783379fef7c7fb4411b03208 before 87b9d7a4cfbed5f42af440372026270af997c766; from da7e394bf58f94e9783379fef7c7fb4411b03208 before 6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e; 6.19 (not affected: before 6.19; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/87b9d7a4cfbed5f42af440372026270af997c766> (patch)
- <https://git.kernel.org/stable/c/6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e> (patch)

## Sources

- CVE List: [CVE-2026-46258](https://www.cve.org/CVERecord?id=CVE-2026-46258), CVE Terms of Use, modified 2026-06-03
- NVD: [CVE-2026-46258](https://nvd.nist.gov/vuln/detail/CVE-2026-46258), Public domain, modified 2026-07-22

---

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