CVE-2026-43182: media: ccs: Avoid possible division by zero
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: ccs: Avoid possible division by zero
Calculating maximum M for scaler configuration involves dividing by MIN_X_OUTPUT_SIZE limit register's value. Albeit the value is presumably non-zero, the driver was missing the check it in fact was. Fix this.
The Linux kernel CVE team has assigned CVE-2026-43182 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 5.15.202 with commit b6e0529c300e44153fc6f3b565e28163caf1f031 Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 6.1.165 with commit 9aae0f31d37a8facd25e37c0f0709ea08de83802 Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 6.6.128 with commit c9af1818387f5c6f543e2e02c40b3038eae86be8 Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 6.12.75 with commit 32a21ed2ad743fe2d12af48e627089b921a032c2 Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 6.18.16 with commit a8ff58cc8c7514c278ba0ea2c787d4bf9eeb355d Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 6.19.6 with commit 8ca7df18e7a58a0e5b0ed9eaaa34e16fc5cb9680 Issue introduced in 3.5 with commit ccfc97bdb5ae8b8edc55169ac6924e08449836ac and fixed in 7.0 with commit 679f0b7b6a409750a25754c8833e268e5fdde742
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-43182
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/i2c/ccs/ccs-core.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/b6e0529c300e44153fc6f3b565e28163caf1f031 https://git.kernel.org/stable/c/9aae0f31d37a8facd25e37c0f0709ea08de83802 https://git.kernel.org/stable/c/c9af1818387f5c6f543e2e02c40b3038eae86be8 https://git.kernel.org/stable/c/32a21ed2ad743fe2d12af48e627089b921a032c2 https://git.kernel.org/stable/c/a8ff58cc8c7514c278ba0ea2c787d4bf9eeb355d https://git.kernel.org/stable/c/8ca7df18e7a58a0e5b0ed9eaaa34e16fc5cb9680 https://git.kernel.org/stable/c/679f0b7b6a409750a25754c8833e268e5fdde742