# CVE-2026-46269: pinctrl: canaan: k230: Fix NULL pointer dereference when parsing devicetree

- 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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-03T15:50:11.254Z
- Modified: 2026-07-22T20:10:00.127Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: canaan: k230: Fix NULL pointer dereference when parsing devicetree

When probing the k230 pinctrl driver, the kernel triggers a NULL pointer
dereference. The crash trace showed:
[    0.732084] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000068
[    0.740737] ...
[    0.776296] epc : k230_pinctrl_probe+0x1be/0x4fc

In k230_pinctrl_parse_functions(), we attempt to retrieve the device
pointer via info->pctl_dev->dev, but info->pctl_dev is only initialized
after k230_pinctrl_parse_dt() completes.

At the time of DT parsing, info->pctl_dev is still NULL, leading to
the invalid dereference of info->pctl_dev->dev.

Use the already available device pointer from platform_device
instead of accessing through uninitialized pctl_dev.

(As written by CVE List.)

## Affected

- Linux Linux: from d94a32ac688f953dc9a9f12b5b4139ecad841bbb before 3c7d637bfc3dfbd6471c68bd767f7eb8b5b09eba; from d94a32ac688f953dc9a9f12b5b4139ecad841bbb before 1d0d361f4dbc2bb2003594f84e4b101fc6b508c0; from d94a32ac688f953dc9a9f12b5b4139ecad841bbb before d8c128fb6c2277d95f3f6a4ce28b82c8370031f6; 02c1deb1bff2b6d242e29a51e56107495979a2b8; 0ec03251d01494ef207089b5bd626becfd05fd86; from 6.15.10 before 6.16; from 6.16.1 before 6.17; 6.17 (not affected: before 6.17; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.15.10 before 6.16; from 6.16.1 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/3c7d637bfc3dfbd6471c68bd767f7eb8b5b09eba> (patch)
- <https://git.kernel.org/stable/c/1d0d361f4dbc2bb2003594f84e4b101fc6b508c0> (patch)
- <https://git.kernel.org/stable/c/d8c128fb6c2277d95f3f6a4ce28b82c8370031f6> (patch)

## Sources

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

---

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