CVE-2026-93274: pinctrl: bcm2835: Don't remove an unregistered GPIO chip

Published Sep 24, 2026
·
Updated

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

pinctrl: bcm2835: Don't remove an unregistered GPIO chip

If the devmpinctrlregister() function fails, bcm2835pinctrlprobe() calls gpiochipremove() before gpiochipadddata() has registered the GPIO chip.

This means that upon failure the gpiochip.gpiodev is NULL resulting in a null pointer dereference inside the gpiochipremove() function.

Remove the unnecessary function call to gpiochipremove(). No GPIO cleanup is required because the GPIO chip has not yet been registered. Without this change there is potential for a kernel panic upon registration failure

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Remove the gpiochip_remove() call from bcm2835_pinctrl_probe() on the devm_pinctrl_register() failure path, because gpiochip_add_data() has not yet registered the GPIO chip.

Event History

Sep 24, 2026
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

When can this issue cause a kernel panic?

A kernel panic is possible if bcm2835_pinctrl_probe() reaches a devm_pinctrl_register() failure. The failure path then attempts to remove a GPIO chip that was never registered, causing a null pointer dereference.

2

Is GPIO cleanup needed if the pin controller registration fails?

No. The GPIO chip has not been registered at that point, so no GPIO cleanup is required; removing the unnecessary gpiochip_remove() call avoids the null pointer dereference.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203