media: mgb4: protect driver against spectre
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: mgb4: protect driver against spectre
Frequency range is set from sysfs via frequency_range_store(), being vulnerable to spectre, as reported by smatch:
drivers/media/pci/mgb4/mgb4_cmt.c:231 mgb4_cmt_set_vin_freq_range() warn: potential spectre issue 'cmt_vals_in' [r] drivers/media/pci/mgb4/mgb4_cmt.c:238 mgb4_cmt_set_vin_freq_range() warn: possible spectre second half. 'reg_set'
Fix it.
From the CVE record · Linux
The Linux kernel's mgb4 media driver has a potential Spectre issue when a frequency range is set through sysfs. A local user who can set that value may trigger the vulnerable code; the input does not establish whether authentication is required or what an attacker could obtain.
Engineers running Linux kernels with the mgb4 media driver should check their kernel versions against the vendor advisory; affected versions were not provided.