CVE-2026-138988: media: marvell: manage the MMP camera clock provider
In the Linux kernel, the following vulnerability has been resolved:
media: marvell: manage the MMP camera clock provider
mmpcamprobe() registers an OF clock provider before requesting the IRQ. Neither a later probe failure nor driver removal unregisters that provider, although the underlying clock is registered with devmclkregister(). This leaves the provider referring to a clock whose lifetime has ended.
Use devmofclkaddhwprovider() with the existing mclkhw so the provider is unregistered before the managed clock and camera storage are released.
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.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In the Marvell MMP camera driver, use devm_of_clk_add_hw_provider() with the existing mclk_hw so the clock provider is unregistered before the managed clock and camera storage are released.
Event History
Frequently Asked Questions
When can the stale clock-provider reference be created?
It can be left behind if probing fails after the OF clock provider is registered, or when the camera driver is removed. In those cases, the managed clock and camera storage can be released while the provider remains registered.
What change addresses the lifetime mismatch?
The fix uses devm_of_clk_add_hw_provider() with the existing mclk_hw. This ensures the clock provider is unregistered before the managed clock and camera storage are released.