media: cx231xx: Fix cleanup path on failure
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
media: cx231xx: Fix cleanup path on failure
If cx231xx_init_v4l2() fails the probe currently jumps to err_init, 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 i2c_mux_add_adapter+0xcd8/0xeb0 Call Trace: i2c_mux_add_adapter+0xcdc/0xeb0 cx231xx_dev_init+0x2fb/0x1260 cx231xx_usb_probe+0xc48/0x2140 usb_probe_interface+0x657/0xc70 ...
Jump to err_video_alt instead, which performs the full device cleanup before unregistering the V4L2 device.
| Product | Versions |
|---|---|
| Linux Linux | 4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before 97783d8945570d00b6ed239f89c21a8566b0e667 Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before e18438e09766a569388598ac81bc5d3177e0839f Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before e945ff72c4308b9a746b97cb7227a83e2d4fbda5 Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before 094d4821283e2a6fe6f0647de691f4664c48b72e Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before 5afa77304fc3bd98eb950a2efa6272a08c4d58f8 Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before c7091528ab213890694dada122a3f75a63c735e3 Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before 617b0c1115217fed876c9fddea4a527a50d2ec5a Affected4d2a7d3509f52106c50007c1dc0b8d79e8040128 to before 6e30287eaf3e41b86dfb86df3b811526693d74b4 Affected |
| Linux Linux | 3.17 Affectedbefore 3.17 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/97783d8945570d00b6ed239f89c21a8566b0e667
- https://git.kernel.org/stable/c/e18438e09766a569388598ac81bc5d3177e0839f
- https://git.kernel.org/stable/c/e945ff72c4308b9a746b97cb7227a83e2d4fbda5
- https://git.kernel.org/stable/c/094d4821283e2a6fe6f0647de691f4664c48b72e
- https://git.kernel.org/stable/c/5afa77304fc3bd98eb950a2efa6272a08c4d58f8
- https://git.kernel.org/stable/c/c7091528ab213890694dada122a3f75a63c735e3
- https://git.kernel.org/stable/c/617b0c1115217fed876c9fddea4a527a50d2ec5a
- https://git.kernel.org/stable/c/6e30287eaf3e41b86dfb86df3b811526693d74b4
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.