Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 6f6a5b0b0a84c2de0e152f2841e57bc226db924f; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 8eca0f85eeb0789be40e637bcf9a21c4265b6c6f; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before ffc27411ea60b8a09f1fea3d664b65210fdeb454; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 5626785b0e4665326e4d96736c106161da09b2f0; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 3e03f1209c1c8a45a7bc559f4ecd79d9b33f706d; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 342632a4d8ba3fafc1556deee0b7a48dd7860336; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 7d221859ba45d7228d0138c9a3e55bd3bb31e14e; affected 14d962602c8bf86e63c9b9272be1f0360d0a448a before 330f2936ab768c7215322a476f033143e8891d28 |
| Linux / Linux | affected 2.6.28; unaffected 0 before 2.6.28; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- 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