media: s2255: check firmware size before reading trailing marker
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 14d962602c8bf86e63c9b9272be1f0360d0a448a · < 342632a4d8ba3fafc1556deee0b7a48dd7860336| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s s2255 driver reads beyond the firmware blob if the file is shorter than 8 bytes. This occurs during device probing when the driver reads a marker and version from the end of the blob; the input does not specify how an attacker could supply such a file.
Engineers running Linux kernels with the s2255 media driver should check their affected versions; no version range is provided.