CVE-2026-68230: media: amlogic-c3: Add validations for ae and awb config
Greg Kroah-Hartman <[email protected]>
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026081016-CVE-2026-68230-9c59@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== 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 The Linux kernel CVE team has assigned CVE-2026-68230 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit fb2e135208f364f26b7579c191434d38655e813f and fixed in 6.18.42 with commit 391fe3e36e59f3c6e3d46edfb3a5de51e00cd216 Issue introduced in 6.16 with commit fb2e135208f364f26b7579c191434d38655e813f and fixed in 7.1.6 with commit 32cbe5474e74817aa8a576b94135cc45e59f5e07 Issue introduced in 6.16 with commit fb2e135208f364f26b7579c191434d38655e813f and fixed in 7.2-rc1 with commit 9724164f71974a2a44a5e026614fbcc05bab6d91 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-68230 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/platform/amlogic/c3/isp/c3-isp-params.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/391fe3e36e59f3c6e3d46edfb3a5de51e00cd216 https://git.kernel.org/stable/c/32cbe5474e74817aa8a576b94135cc45e59f5e07 https://git.kernel.org/stable/c/9724164f71974a2a44a5e026614fbcc05bab6d91