media: venus: hfi: avoid null dereference in deinit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
54f1727a0956bcbed3a88540577c5e7dbab93aec| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: venus: hfi: avoid null dereference in deinit
If venus_probe fails at pm_runtime_put_sync the error handling first calls hfi_destroy and afterwards hfi_core_deinit. As hfi_destroy sets core->ops to NULL, hfi_core_deinit cannot call the core_deinit function anymore.
Avoid this null pointer derefence by skipping the call when necessary.
From the CVE record · Linux
The Linux kernel’s Venus HFI cleanup can dereference a null pointer if venus_probe fails at pm_runtime_put_sync. The input does not describe an attacker-controlled trigger or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with Venus HFI should check their version; affected versions are not specified.