media: imon: fix access to invalid resource for the second interface
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 21677cfc562a27e099719d413287bc8d1d24deb7 · < a1766a4fd83befa0b34d932d532e7ebb7fab1fa7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: imon: fix access to invalid resource for the second interface
imon driver probes two USB interfaces, and at the probe of the second interface, the driver assumes blindly that the first interface got bound with the same imon driver. It's usually true, but it's still possible that the first interface is bound with another driver via a malformed descriptor. Then it may lead to a memory corruption, as spotted by syzkaller; imon driver accesses the data from drvdata as struct imon_context object although it's a completely different one that was assigned by another driver.
This patch adds a sanity check -- whether the first interface is really bound with the imon driver or not -- for avoiding the problem above at the probe time.
From the CVE record · Linux
The Linux kernel’s imon driver can access invalid data when probing the second USB interface if a malformed descriptor causes the first interface to bind to another driver. This can cause memory corruption during device probing; the input does not establish authentication requirements or whether an attacker needs physical access.
Engineers running Linux kernels with the imon driver should check their deployments; affected versions were not provided.