media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()
v4l2_subdev_call_state_try() macro allocates a subdev state with __v4l2_subdev_state_alloc(), but does not check the returned value. If __v4l2_subdev_state_alloc fails, it returns an ERR_PTR, and that would cause v4l2_subdev_call_state_try() to crash.
Add proper error handling to v4l2_subdev_call_state_try().
From the CVE record · Linux
The Linux kernel's v4l2_subdev_call_state_try() does not check whether state allocation failed. An allocation failure can cause a kernel crash. The input does not establish whether an attacker can trigger this condition or what access or user interaction would be required.
Teams running Linux kernels with the affected v4l2-subdev code should check their deployments; affected versions are not specified.