media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d855497edbfbf9e19a17f4a1154bca69cb4bd9ba · < 3309c2c574e13b21b44729f5bdbf21f60189b79a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init
Syzbot reported that -1 is used as array index. The problem was in missing validation check.
hdw->unit_number is initialized with -1 and then if init table walk fails this value remains unchanged. Since code blindly uses this member for array indexing adding sanity check is the easiest fix for that.
hdw->workpoll initialization moved upper to prevent warning in __flush_work.
From the CVE record · Linux
The Linux kernel's pvrusb2 driver can use -1 as an array index if an initialization-table walk fails, because it does not validate the index. The input does not establish what an attacker could do or whether exploitation requires local or network access, authentication, or user interaction.
Engineers running Linux kernels with the pvrusb2 driver should check their versions; affected versions are not specified.