Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: mailbox: imx: Use devm_pm_runtime_enable() sashiko complained about early usage of the device while probe isn't completed. This can be mitigated by delaying the pm_runtime_enable() into the removal path instead doing it early. This ensures that in an error case the device is removed (and imx_mu_shutdown()) before pm_runtime_disable() so we don't have to do this manually. For the order to work, lets move devm_mbox_controller_register() until after the pm-runtime part. So the reverse order will be mbox-controller removal followed by disabling pm runtime. Use devm_pm_runtime_enable(), remove manual pm_runtime_disable() invocations and move the pm_runtime handling in probe before devm_mbox_controller_register().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b30a047744ea4344bb6f854b0a052cf276349128; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before adcaa21d50c3a4c884f4d0b7a95fa3bd7a07cf84; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1f602619e408b6e9655ee76656a2a5ab6e89c5e4; affected 0 before 6.12.111; affected 0 before 6.18.53 |
| Linux / Linux | unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.