CVE-2026-139631: mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock
In the Linux kernel, the following vulnerability has been resolved:
mfd: intelquarki2cgpio: Manage the fixed-rate clock
The I2C clock is allocated by clkregisterfixedrate(), but cleanup uses clkunregister(), leaving the fixed-rate provider allocation behind.
Manage the provider with devmclkhwregisterfixedrate() and its lookup with devmclkhwregisterclkdev(). Managed resources release the lookup before the provider, after the MFD children have been removed.
Remove the manual clock cleanup and the private structure that only stored the clock and lookup pointers.
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Manage the I2C fixed-rate clock with devm_clk_hw_register_fixed_rate() and its lookup with devm_clk_hw_register_clkdev(); remove the manual clock cleanup and the private structure that stores the clock and lookup pointers.
Event History
Frequently Asked Questions
What is the practical impact of this issue?
The driver can leave a fixed-rate clock provider allocation behind during cleanup because it unregisters the clock without releasing the provider allocation. This is a resource-cleanup issue identified through static analysis.
When could systems encounter the resource leak?
The issue is relevant when the Intel Quark I2C/GPIO MFD driver is cleaned up or removed. The affected cleanup path concerns the I2C clock and its clock-provider registration.
What does the fix change?
The fix registers the fixed-rate clock provider and its clock lookup as device-managed resources. This ensures the lookup is released before the provider, after MFD child devices have been removed, and eliminates the manual clock cleanup path.