CVE-2026-64241: gpio: rockchip: teardown bugs and resource leaks

Published Jul 24, 2026
·
Updated

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

gpio: rockchip: teardown bugs and resource leaks

Address several teardown issues and resource leaks in the driver's remove path and error handling:

1. Debounce clock reference leak: The debounce clock (bank->dbclk) is obtained using ofclkget() which increments the clock's reference count, but clkput() is never called. Register a devm action to cleanly release it on unbind. Note that ofclkget(..., 1) remains necessary over devmclkget() because the DT binding does not define clock-names, precluding name-based lookup.

2. Unregistered chained IRQ handler: The chained IRQ handler is not disconnected in remove(). If a stray interrupt fires after the driver is removed, the kernel attempts to execute a stale handler, leading to a panic. Fix this by clearing the handler in remove().

3. IRQ domain leak: The linear IRQ domain and its generic chips are allocated manually during probe but never removed. Remove the IRQ domain during driver teardown to free the associated generic chips and mappings.

[Bartosz: don't emit an error message on devres allocation failure]

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=5.15<6.12.96
Linux Linux kernel>=6.13<6.18.35
Linux Linux kernel>=6.19<7.0.12
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the driver’s remove() path, clear the handler for the debounce clock (bank->db_clk) to fix the debounce clock reference leak and ensure any stray references/handlers are not left active after unbind.

    Linux kernel gpio: rockchip driver Debounce clock handler clearing in remove() = Clear the debounce clock (bank->db_clk) handler during driver teardown in remove()
  2. Configuration

    In the driver’s remove() path, remove the IRQ domain (linear IRQ domain) and unregistered chained IRQ handler resources, and ensure the linear IRQ domain is cleaned up to free the associated generic chips and prevent leaked IRQ domain resources.

    Linux kernel gpio: rockchip driver IRQ domain teardown = Remove the linear IRQ domain and its generic chips during driver teardown
  3. Configuration

    Ensure the chained IRQ handler that was allocated during probe but not removed is cleanly released in the driver’s remove()/unbind teardown path to prevent stray interrupts from executing a stale handler and panicking the kernel.

    Linux kernel gpio: rockchip driver Unregistered chained IRQ handler cleanup = Cleanly release the chained IRQ handler on unbind/remove()
  4. Configuration

    Register a devm action to cleanly release clocks obtained via of_clk_get(..., 1): since the DT binding does not define clock-names and of_clk_get increments the clock reference, ensure the driver calls clk_put() via the registered devm action during teardown.

    Linux kernel gpio: rockchip driver clk reference release (clk_put/of_clk_get path) = Use devm action for of_clk_get and ensure clk_put is called

Event History

Jul 24, 2026
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
Description
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-64241?

The severity of CVE-2026-64241 is rated as 50.

2

What vulnerabilities are addressed in CVE-2026-64241?

CVE-2026-64241 addresses teardown bugs and resource leaks in the GPIO driver for Rockchip in the Linux kernel.

3

How can I mitigate the issues caused by CVE-2026-64241?

To mitigate the issues caused by CVE-2026-64241, you should update your Linux kernel to the latest version where this vulnerability is resolved.

4

Which software is affected by CVE-2026-64241?

CVE-2026-64241 affects the Linux kernel, specifically the GPIO driver for Rockchip.

5

When was CVE-2026-64241 published?

CVE-2026-64241 was published on July 24, 2026.

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