media: radio-si476x: Unregister v4l2_device on probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b879a9c2a755d4ddf9e685258de6435710fd2f03 · < 64cb15878b35e5574ff4f80a0b613a79e47867ba| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: radio-si476x: Unregister v4l2_device on probe failure
si476x_radio_probe() registers radio->v4l2dev before allocating the V4L2 controls and before registering the video device. If any of those later steps fails, probe returns through the exit label after freeing only the control handler.
A failed probe does not call si476x_radio_remove(), so the v4l2_device_unregister() there is not reached. This leaves the parent device reference taken by v4l2_device_register() behind on the error path.
Unregister the V4L2 device in the probe error path after freeing the controls.
From the CVE record · Linux
The Linux kernel's radio-si476x driver fails to unregister a V4L2 device when a later probe step fails, leaving a parent device reference behind. The input does not establish an attacker-triggered path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the radio-si476x driver should check their kernel versions; affected versions are not specified.