CVE-2026-139046: media: cx231xx: Fix cleanup path on failure
In the Linux kernel, the following vulnerability has been resolved:
media: cx231xx: Fix cleanup path on failure
If cx231xxinitv4l2() fails the probe currently jumps to errinit, which only unregisters the V4L2 device. The analog devices and I2C resources are left registered while the driver state can be released.
A subsequent driver bind attempts to create the same I2C mux channel links and triggers a warning when the existing "channel-0" link is encountered. The remaining devices may also access released driver state. This produces the following warning
can't create symlink to channel 0 WARNING: drivers/i2c/i2c-mux.c:403 at i2cmuxaddadapter+0xcd8/0xeb0 Call Trace: i2cmuxaddadapter+0xcdc/0xeb0 cx231xxdevinit+0x2fb/0x1260 cx231xxusbprobe+0xc48/0x2140 usbprobeinterface+0x657/0xc70 ...
Jump to errvideoalt instead, which performs the full device cleanup before unregistering the V4L2 device.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the cx231xx probe cleanup path, jump to err_video_alt instead of err_init when cx231xx_init_v4l2() fails, so device and I2C resources are cleaned up before the V4L2 device is unregistered.
Event History
Frequently Asked Questions
When can this issue be triggered?
It is triggered when cx231xx_init_v4l2() fails during cx231xx USB driver probing. A subsequent attempt to bind the driver can then encounter I2C mux resources left behind by the failed probe.
What are the observable signs of an affected system?
A later driver bind may log "can't create symlink to channel 0" and an i2c_mux_add_adapter warning when it encounters an existing "channel-0" link. The call trace can include cx231xx_dev_init and cx231xx_usb_probe.
What is the impact of the incomplete cleanup?
Analog devices and I2C resources can remain registered after the driver state is released. Those remaining devices may subsequently access released driver state.
What does the fix change?
The corrected failure path jumps to err_video_alt rather than err_init. This performs full device cleanup before the V4L2 device is unregistered.