Linux
media: amlogic-c3: Add validations for ae and awb config
In the Linux kernel, the following vulnerability has been resolved: media: amlogic-c3: Add validations for ae and awb config Avoid invalid memory access if the zones_num is bigger than zone_weight. This patch fixes the following smatch errors: drivers/media/platform/amlogic/c3/isp/c3-isp-params.c:111 c3_isp_params_awb_wt() error: buffer overflow 'cfg->zone_weight' 768 <= u32max drivers/media/platform/amlogic/c3/isp/c3-isp-params.c:111 c3_isp_params_awb_wt() error: buffer overflow 'cfg->zone_weight' 768 <= u32max drivers/media/platform/amlogic/c3/isp/c3-isp-params.c:227 c3_isp_params_ae_wt() error: buffer overflow 'cfg->zone_weight' 255 <= u32max drivers/media/platform/amlogic/c3/isp/c3-isp-params.c:227 c3_isp_params_ae_wt() error: buffer overflow 'cfg->zone_weight' 255 <= u32max
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= fb2e135208f364f26b7579c191434d38655e813f, < 391fe3e36e59f3c6e3d46edfb3a5de51e00cd216
- >= fb2e135208f364f26b7579c191434d38655e813f, < 32cbe5474e74817aa8a576b94135cc45e59f5e07
- >= fb2e135208f364f26b7579c191434d38655e813f, < 9724164f71974a2a44a5e026614fbcc05bab6d91
Fixed in 391fe3e36e59f3c6e3d46edfb3a5de51e00cd216, 32cbe5474e74817aa8a576b94135cc45e59f5e07, 9724164f71974a2a44a5e026614fbcc05bab6d91
- 6.16
Fixed in 0, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 391fe3e36e59f3c6e3d46edfb3a5de51e00cd216 or 32cbe5474e74817aa8a576b94135cc45e59f5e07 or 9724164f71974a2a44a5e026614fbcc05bab6d91 or later.
Upgrade Linux to 0 or 6.18.42 or 7.1.6 or 7.2 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.