staging: media: ipu7: fix pm_runtime refcount leak in ipu7_resume()
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.18.527.2.67.3In the Linux kernel, the following vulnerability has been resolved:
staging: media: ipu7: fix pm_runtime refcount leak in ipu7_resume()
ipu7_resume() calls pm_runtime_get_sync() before resuming the device. If the runtime PM resume fails, the usage count remains incremented, but the error path returns without dropping the reference.
Use pm_runtime_resume_and_get() instead, which balances the usage count on failure and avoids the leak. Keep returning 0 on error, as resume callbacks should not propagate failures to the PM core, matching the behaviour of the ipu6 driver.
From the CVE record · Linux
The Linux kernel’s staging media ipu7 driver leaks a runtime power-management usage reference if device resume fails. The input does not describe an attacker scenario, access requirements, or user interaction.
Engineers running Linux kernels with the staging media ipu7 driver should check their deployments; affected versions are not specified.