media: hi846: fix usage of pm_runtime_get_if_in_use()
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 |
|
|
6.1.396.4.46.5In the Linux kernel, the following vulnerability has been resolved:
media: hi846: fix usage of pm_runtime_get_if_in_use()
pm_runtime_get_if_in_use() does not only return nonzero values when the device is in use, it can return a negative errno too.
And especially during resuming from system suspend, when runtime pm is not yet up again, -EAGAIN is being returned, so the subsequent pm_runtime_put() call results in a refcount underflow.
Fix system-resume by handling -EAGAIN of pm_runtime_get_if_in_use().
From the CVE record · Linux
The Linux kernel’s hi846 media driver mishandles a negative return value from pm_runtime_get_if_in_use(). During system resume, an -EAGAIN return can lead to a runtime power-management refcount underflow; the input does not describe an attacker or exploitation conditions.
Engineers running Linux kernels with the hi846 media driver should check their kernel versions; affected versions are not specified.