ionic: no double destroy workqueue
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ionic: no double destroy workqueue
There are some FW error handling paths that can cause us to try to destroy the workqueue more than once, so let's be sure we're checking for that.
The case where this popped up was in an AER event where the handlers got called in such a way that ionic_reset_prepare() and thus ionic_dev_teardown() got called twice in a row. The second time through the workqueue was already destroyed, and destroy_workqueue() choked on the bad wq pointer.
We didn't hit this in AER handler testing before because at that time we weren't using a private workqueue. Later we replaced the use of the system workqueue with our own private workqueue but hadn't rerun the AER handler testing since then.
From the CVE record · Linux
The Linux kernel's ionic driver can try to destroy a private workqueue twice during firmware error handling. This was observed when an AER event caused teardown to run twice, leaving an invalid workqueue pointer for the second call. The input does not establish an attacker-controlled trigger or specify access or interaction requirements.
Engineers running Linux kernels with the ionic driver should check whether their kernel includes the fix; affected versions were not specified.