crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8a5a7611ccc7b1fba8d933a9f22a2e76859d94dc · < c2d443aa1ae3175c13a665f3a24b8acd759ce9c3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
Using completion_done to determine whether the caller has gone away only works after a complete call. Furthermore it's still possible that the caller has not yet called wait_for_completion, resulting in another potential UAF.
Fix this by making the caller use cancel_work_sync and then freeing the memory safely.
From the CVE record · Linux
The Linux kernel crypto qat driver has a memory leak in ADF_DEV_RESET_SYNC handling and a potential use-after-free when the caller has not yet called wait_for_completion. The input does not specify how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the crypto qat driver should check their exposure; affected versions are not specified.