media: qcom: camss: vfe: Fix out-of-bounds access in vfe_isr_reg_update()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4edc8eae715cecf5f8bf12a0c77c281f336c37db · < d965919af524e68cb2ab1a685872050ad2ee933d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: qcom: camss: vfe: Fix out-of-bounds access in vfe_isr_reg_update()
vfe_isr() iterates using MSM_VFE_IMAGE_MASTERS_NUM(7) as the loop bound and passes the index to vfe_isr_reg_update(). However, vfe->line[] array is defined with VFE_LINE_NUM_MAX(4):
struct vfe_line line[VFE_LINE_NUM_MAX];
When index is 4, 5, 6, the access to vfe->line[line_id] exceeds the array bounds and resulting in out-of-bounds memory access.
Fix this by using separate loops for output lines and write masters.
From the CVE record · Linux
The Linux kernel’s Qualcomm CAMSS VFE driver can access beyond its vfe->line array when vfe_isr() passes indices 4 through 6 to vfe_isr_reg_update(). This can cause an out-of-bounds memory access. The input does not establish how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with the Qualcomm CAMSS VFE driver should check their versions; affected versions are not specified.