CVE-2026-89878: media: s2255: check firmware size before reading trailing marker
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: s2255: check firmware size before reading trailing marker
s2255_probe() reads a 4-byte marker and version from the last 8 bytes of the firmware blob (fw->data[fw_size - 8] and [fw_size - 4]). If the firmware file is shorter than 8 bytes, fw_size - 8 underflows and the access reads out of bounds. Validate the firmware size before indexing.
The Linux kernel CVE team has assigned CVE-2026-89878 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 5.10.270 with commit 6f6a5b0b0a84c2de0e152f2841e57bc226db924f Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 5.15.221 with commit 8eca0f85eeb0789be40e637bcf9a21c4265b6c6f Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 6.1.188 with commit ffc27411ea60b8a09f1fea3d664b65210fdeb454 Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 6.6.157 with commit 5626785b0e4665326e4d96736c106161da09b2f0 Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 6.12.110 with commit 3e03f1209c1c8a45a7bc559f4ecd79d9b33f706d Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 6.18.51 with commit 342632a4d8ba3fafc1556deee0b7a48dd7860336 Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 7.2.5 with commit 7d221859ba45d7228d0138c9a3e55bd3bb31e14e Issue introduced in 2.6.28 with commit 14d962602c8bf86e63c9b9272be1f0360d0a448a and fixed in 7.3-rc1 with commit 330f2936ab768c7215322a476f033143e8891d28
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-89878
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/usb/s2255/s2255drv.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/6f6a5b0b0a84c2de0e152f2841e57bc226db924f https://git.kernel.org/stable/c/8eca0f85eeb0789be40e637bcf9a21c4265b6c6f https://git.kernel.org/stable/c/ffc27411ea60b8a09f1fea3d664b65210fdeb454 https://git.kernel.org/stable/c/5626785b0e4665326e4d96736c106161da09b2f0 https://git.kernel.org/stable/c/3e03f1209c1c8a45a7bc559f4ecd79d9b33f706d https://git.kernel.org/stable/c/342632a4d8ba3fafc1556deee0b7a48dd7860336 https://git.kernel.org/stable/c/7d221859ba45d7228d0138c9a3e55bd3bb31e14e https://git.kernel.org/stable/c/330f2936ab768c7215322a476f033143e8891d28