media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a89bcd4c6c2023615a89001b5a11b0bb77eb9491 · < b693d48a6ed0cd09171103ad418e4a693203d6e4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()
It's possible for cp_read() and hdmi_read() to return -EIO. Those values are further used as indexes for accessing arrays.
Fix that by checking return values where it's needed.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The adv7842 media driver can use an -EIO return value from cp_read() or hdmi_read() as an array index in adv7842_cp_log_status(), causing a possible out-of-bounds access. The input does not establish whether an attacker can trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the adv7842 media driver should check their kernel versions; affected versions are not specified.