media: i2c/tw9906: Fix potential memory leak in tw9906_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a000e9a02b5885b1b69f691c80e346d102f94a88 · < 377a7756914364d72550fc86ca0f404ef1d96141| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: i2c/tw9906: Fix potential memory leak in tw9906_probe()
In one of the error paths in tw9906_probe(), the memory allocated in v4l2_ctrl_handler_init() and v4l2_ctrl_new_std() is not freed. Fix that by calling v4l2_ctrl_handler_free() on the handler in that error path.
From the CVE record · Linux
An error path in the Linux kernel’s tw9906_probe() does not free memory allocated for a V4L2 control handler. The input does not describe how an attacker could reach this error path or specify any access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the media i2c/tw9906 driver should check their versions; affected versions are not specified.