media: dvbdev: prevent the risk of out of memory access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5dd3f3071070f5a306bdf8d474c80062f5691cba · < 1e461672616b726f29261ee81bb991528818537c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: dvbdev: prevent the risk of out of memory access
The dvbdev contains a static variable used to store dvb minors.
The behavior of it depends if CONFIG_DVB_DYNAMIC_MINORS is set or not. When not set, dvb_register_device() won't check for boundaries, as it will rely that a previous call to dvb_register_adapter() would already be enforcing it.
On a similar way, dvb_device_open() uses the assumption that the register functions already did the needed checks.
This can be fragile if some device ends using different calls. This also generate warnings on static check analysers like Coverity.
So, add explicit guards to prevent potential risk of OOM issues.
From the CVE record · Linux
The Linux kernel's dvbdev code can lack explicit boundary checks when CONFIG_DVB_DYNAMIC_MINORS is disabled. This creates a potential out-of-bounds memory access risk; the input does not establish an attack path, authentication requirement, or user-interaction requirement.
Anyone running a Linux kernel with dvbdev should check their version and configuration; affected versions are not specified.