CVE-2026-138987: media: go7007: unregister the I2C adapter on USB probe failure
In the Linux kernel, the following vulnerability has been resolved:
media: go7007: unregister the I2C adapter on USB probe failure
USB probe failures after I2C adapter registration free the backing go7007 structure without unregistering the adapter.
If i2cadapteronline is set, unregister the adapter before releasing USB resources so that I2C client removal can still use its callbacks.
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
On USB probe failure, if i2c_adapter_online is set, unregister the I2C adapter before releasing the USB resources.
Event History
Frequently Asked Questions
When can this issue occur?
It occurs when a go7007 USB device probe fails after its I2C adapter has been registered. The failure path can then release the backing go7007 structure while the adapter remains registered.
What is the practical impact of the missing unregister operation?
I2C client removal may still invoke callbacks after the backing go7007 structure has been freed. Unregistering the adapter before USB resources are released ensures those client-removal callbacks can still use valid state.
How can affected systems be identified?
Systems are relevant if they use the Linux kernel go7007 media driver and encounter USB probe failures after I2C adapter registration. The provided information does not identify a specific affected kernel version or a runtime indicator.