CVE-2026-92482: pinctrl: mediatek: use devm_gpiochip_add_data() for GPIO chip

Published Sep 17, 2026
·
Updated

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

pinctrl: mediatek: use devmgpiochipadddata() for GPIO chip

The gpiochip is allocated with device-managed memory but registered with the non-managed gpiochipadddata(). This was harmless while the drivers were built-in, but once they can be built as modules and unbound/rmmod'd, devm frees the gpiochip's memory while it is still registered, causing a use-after-free.

Register it with devmgpiochipadddata() so it shares the same device-managed lifecycle, which also lets the manual gpiochipremove() error paths go away.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update the pinctrl: mediatek GPIO chip registration to use devm_gpiochip_add_data() so the gpio_chip shares the device-managed lifecycle and is not freed while still registered (avoid the use-after-free when drivers/modules are unbound/rmmod'd).

    pinctrl: mediatek (Linux kernel GPIO controller driver) registration of gpio_chip via devm_gpiochip_add_data() = use devm_gpiochip_add_data() instead of gpiochip_add_data()

Event History

Sep 17, 2026
CVE Published
via MITRE·04:09 PM
Data Sourced
via MITRE·04:09 PM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The issue is relevant when the affected MediaTek pinctrl drivers are built as loadable modules and can be unbound or removed. The described lifetime mismatch was harmless when the drivers were built into the kernel.

2

What action triggers the use-after-free condition?

Unbinding the driver or removing its module can cause device-managed memory for the gpio_chip to be freed while the chip remains registered. Subsequent use of that registered gpio_chip can then access freed memory.

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