media: ipu3-imgu: Fix NULL pointer dereference in active selection access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.766.0.66.1In the Linux kernel, the following vulnerability has been resolved:
media: ipu3-imgu: Fix NULL pointer dereference in active selection access
What the IMGU driver did was that it first acquired the pointers to active and try V4L2 subdev state, and only then figured out which one to use.
The problem with that approach and a later patch (see Fixes: tag) is that as sd_state argument to v4l2_subdev_get_try_crop() et al is NULL, there is now an attempt to dereference that.
Fix this.
Also rewrap lines a little.
From the CVE record · Linux
The Linux kernel’s ipu3-imgu driver can dereference a NULL pointer when accessing an active selection because it passes a NULL subdevice state to a try-state helper. The input does not establish whether an attacker can trigger this or what access or interaction would be required.
Engineers running Linux kernels with the ipu3-imgu driver should check their deployments; affected versions are not specified.