media: i2c: ov5647: Initialize subdev before controls
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4974c2f19fd810ec9a4e534bfc69e176256b7a03 · < fb69e4842f5b463ff5f121d2ac7746014e3477ea| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: i2c: ov5647: Initialize subdev before controls
In ov5647_init_controls() we call v4l2_get_subdevdata, but it is initialized by v4l2_i2c_subdev_init() in the probe, which currently happens after init_controls(). This can result in a segfault if the error condition is hit, and we try to access i2c_client, so fix the order.
From the CVE record · Linux
The ov5647 camera driver initializes controls before the subdevice data they use. If an error condition occurs, this can cause a segmentation fault when the driver accesses the I2C client. The input does not specify how an attacker could trigger the condition or whether access or user interaction is required.
Engineers running the Linux kernel with the ov5647 camera driver should check their kernel; affected versions are not specified.