Bug 2506789 (CVE-2026-64241) - CVE-2026-64241 kernel: gpio: rockchip: teardown bugs and resource leaks
Summary: CVE-2026-64241 kernel: gpio: rockchip: teardown bugs and resource leaks
Keywords:
Status: NEW
Alias: CVE-2026-64241
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-24 16:02 UTC by OSIDB Bzimport
Modified: 2026-07-28 09:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-24 16:02:55 UTC
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->db_clk) is
   obtained using of_clk_get() which increments the clock's reference
   count, but clk_put() is never called. Register a devm action to
   cleanly release it on unbind. Note that of_clk_get(..., 1) remains
   necessary over devm_clk_get() 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]

Comment 1 Mauro Matteo Cascella 2026-07-28 09:39:27 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026072441-CVE-2026-64241-e258@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.