CVE-2026-46269

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

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:

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d94a32ac688f953dc9a9f12b5b4139ecad841bbb to before 3c7d637bfc3dfbd6471c68bd767f7eb8b5b09ebaAffected
  • d94a32ac688f953dc9a9f12b5b4139ecad841bbb to before 1d0d361f4dbc2bb2003594f84e4b101fc6b508c0Affected
  • d94a32ac688f953dc9a9f12b5b4139ecad841bbb to before d8c128fb6c2277d95f3f6a4ce28b82c8370031f6Affected
  • 02c1deb1bff2b6d242e29a51e56107495979a2b8Affected
  • 0ec03251d01494ef207089b5bd626becfd05fd86Affected
  • 6.15.10 to before 6.16Affected
  • 6.16.1 to before 6.17Affected
LinuxLinux
  • 6.17Affected
  • before 6.17Not affected
  • 6.18.14 through 6.18.*Not 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.