Linux
media: qcom: camss: vfe: Fix out-of-bounds access in vfe_isr_reg_update()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < e6cbf765686fb6c1d8f2530b3daf6c66efc92f5d
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < 0c074e80921fd18984b75836730d76c768c84f65
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < 1b103307df6d461a0731be25aca69ad0335b0933
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < fade67c88870f497a13ed450ba01f7236c92dd9b
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < e7a38ecda2498e7ce998793ac2a46ca47317635d
- >= 4edc8eae715cecf5f8bf12a0c77c281f336c37db, < d965919af524e68cb2ab1a685872050ad2ee933d
Fixed in e6cbf765686fb6c1d8f2530b3daf6c66efc92f5d, 0c074e80921fd18984b75836730d76c768c84f65, 1b103307df6d461a0731be25aca69ad0335b0933, fade67c88870f497a13ed450ba01f7236c92dd9b, e7a38ecda2498e7ce998793ac2a46ca47317635d, d965919af524e68cb2ab1a685872050ad2ee933d
- 5.18
Fixed in 0, 6.1.167, 6.6.128, 6.12.75, 6.18.16, 6.19.6, 7.0
Mitigation
Upgrade Linux to e6cbf765686fb6c1d8f2530b3daf6c66efc92f5d or 0c074e80921fd18984b75836730d76c768c84f65 or 1b103307df6d461a0731be25aca69ad0335b0933 or fade67c88870f497a13ed450ba01f7236c92dd9b or e7a38ecda2498e7ce998793ac2a46ca47317635d or d965919af524e68cb2ab1a685872050ad2ee933d or later.
Upgrade Linux to 0 or 6.1.167 or 6.6.128 or 6.12.75 or 6.18.16 or 6.19.6 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.